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
This article example shares the specific code for...
1. dhtmlxTree dHTMLxTree is a feature-rich Tree M...
Preface I recently used a virtual machine to inst...
I am planning to organize the company's inter...
The following graph shows how time-consuming it is...
Regarding the nginx panic problem, we first need ...
Table of contents background Purpose Before split...
What are XHTML tags? XHTML tag elements are the b...
This article example shares the specific code of ...
This article shares the specific code of JavaScri...
First: via text/HTML var txt1="<h1>Tex...
Illustrated CentOS 7.3 installation steps for you...
This article mainly introduces an example of impl...
Development environment windows Development Tools...
This article shares with you how to use the Vue c...