Home >Web Front-end >HTML Tutorial >Why is it displayed normally under IE7, 8, and FF but misaligned under IE6_html/css_WEB-ITnose

Why is it displayed normally under IE7, 8, and FF but misaligned under IE6_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:21:52871browse

Six DIV blocks, three per line, why are they displayed normally under IE7, 8, and FF?
The first line is normal under IE6, but the second line is misaligned, leaving only the rightmost one,
The first two DIVs are squeezed below.

Thank you


Reply to the discussion (solution)

margin:0px; padding:0px;

Do you have margin or padding between your divs? IE6 interprets it differently, for example, margin-left:4px; it may be interpreted as 8px, just use a hack to define it separately,

Statement:
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