How to write css to solve the IE6 3-pixel bug_Experience exchange
May 16, 2016 pm 12:04 PMAs long as IE's hasLayout is triggered, non-floated elements will have layout. Therefore, this problem can be fixed by using the unique hack rules of IE6 and writing a separate style for it:
_zoom:1;
margin-left: value;
_margin-left: value-3px;
zoom is one of the conditions for IE to trigger Layout. Because it is a CSS rule unique to IE, zoom is used.
margin-left: value-3px is to fix the 3px bug in IE6.
Previously, the method of floating non-floating elements was used to fix the bug. Now we can try this new method!
Note: The underscore in front is specially written for hacks below IE7!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to change pixels on Meitu Xiuxiu How to change pixels on Meitu Xiuxiu

How to set the pixel height of Meitu Xiuxiu
