Home Web Front-end CSS Tutorial How to write css to solve the IE6 3-pixel bug_Experience exchange

How to write css to solve the IE6 3-pixel bug_Experience exchange

May 16, 2016 pm 12:04 PM
bug ie6 Pixel

As 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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How many megapixels is 8k? How many megapixels is 8k? Mar 30, 2023 pm 06:21 PM

How many megapixels is 8k?

How to create pixel art in GIMP How to create pixel art in GIMP Feb 19, 2024 pm 03:24 PM

How to create pixel art in GIMP

What does game bug mean? What does game bug mean? Feb 18, 2024 am 11:30 AM

What does game bug mean?

How to change pixels on Meitu Xiuxiu How to change pixels on Meitu Xiuxiu How to change pixels on Meitu Xiuxiu How to change pixels on Meitu Xiuxiu Mar 12, 2024 pm 02:50 PM

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

How to set the pixel height of Meitu Xiuxiu How to set the pixel height of Meitu Xiuxiu Mar 27, 2024 am 11:00 AM

How to set the pixel height of Meitu Xiuxiu

Apple iOS18 bug summary Apple iOS18 bug summary Jun 14, 2024 pm 01:48 PM

Apple iOS18 bug summary

What does system bagage mean? What does system bagage mean? Nov 09, 2022 pm 02:40 PM

What does system bagage mean?

Sorting out Win11 errors and issues Sorting out Win11 errors and issues Jan 13, 2024 pm 08:21 PM

Sorting out Win11 errors and issues

See all articles