As shown in the figure: But when viewed under IE6, it becomes right:1px: ![]() IE6 still has a bug with odd widths and heights. The solution is to change the width of the external relatively positioned div to an even number. The height is the same <br />View source code: CSS code: #out { width: 609px;/*The width here is an odd number, so a bug will occur! ! Change it to an even number and it will be OK*/ height: 300px; position: relative; background:#FF0000; color:#FFF; } #inn { width: 200px; height: 250px; position: absolute; top: 0px; right: 0px; background:#000000; } XML/HTML code: <div id="out"> <div id="inn">This is the internal absolutely positioned DIV</div> </div> |
<<: Solve the docker.socket permission problem of vscode docker plugin
>>: HTML tag default style arrangement
Preface Use nginx for load balancing. As the fron...
This article shares the specific code of Vue to r...
Table of contents Overview 1. Overview of input a...
1. Install vsftpd component Installation command:...
This article example shares the specific code of ...
1. IT Mill Toolkit IT Mill Toolkit is an open sou...
Table of contents Overview Defining methods on an...
Preface The project requires a circular menu. I s...
Use of stored procedure in parameters IN paramete...
This article shares the installation and configur...
MySQL 8 Windows version zip installation steps (d...
Table of contents background Provide / Inject Ext...
1. Mental Journey When I was writing the cockpit ...
Table of contents Preface Setting up with Vue CLI...
Two-column layout is often used in projects. Ther...