Home >Web Front-end >HTML Tutorial >IE6 space bug correction method_HTML/Xhtml_Web page production

IE6 space bug correction method_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:42:241435browse

Look at the code:

Copy the code
The code is as follows:

< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">




< ;/head>

To the world, you are one person; but to someone, you are his entire world. Even if you are sad, don't frown, because you don't know who will fall in love with your smile.





This code has no effect on the first character style definition of

in IE6 , and after adding spaces to p:first-letter and {font-size:300%}, that is, p:first-letter {font-size:300%}, the display becomes normal.

This problem mainly occurs in the IE6 browser, and this friend also explained some necessary trigger conditions:
1. IE6 browser
2. The selector has pseudo-classes
3. There must be a connector "-" in the pseudo class, for example: first-letter
4. Whether there are spaces

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