IE6 space bug correction method


Look at the code:

Copy code

The code is as follows:

< !DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “//”>
<html xmlns=”//”>
<style type=”text/css”>
<p>To the world, you are a person; But for someone, you are his whole world. Never frown, even when you are sad, because you never know who is falling in love with your smile</ p>

This code has no effect on the definition of the first character style of < p > in IE6. After adding spaces to P: first letter and {font size: 300%}, that is, P: first letter {font size: 300%}, the display will be normal.

This problem mainly appears in IE6 browser, and this friend also explained some necessary trigger conditions:
1. IE6 browser
2. Selectors are with pseudo classes
3. The pseudo class must have the connector “-“, for example: first letter
4. Is there a space