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
<!doctype html> <html xmlns="http:/...
Preface For tree-structured data in the database,...
Mainly from two aspects: 1. Highlight/Line Break ...
Often you will encounter a style of <a> tag...
1. Problem Sometimes when we log in to Mysql and ...
mysql create table sql statement Common SQL state...
Batch replace part of the data of a field in MYSQ...
Table of contents Technology Stack Backend build ...
<br />Previous article: Web Design Tutorial ...
background nginx-kafka-module is a plug-in for ng...
At the beginning, I felt sad. The screenshots are...
Judging from the results, there is no fixed patte...
Table of contents 1. Preparation 2. Define the gl...
In fact, it is very simple to achieve this effect,...
I have written such an article before, but I used...