Home >Web Front-end >HTML Tutorial >How to make spaces have the same width in IE and FF? _HTML/Xhtml_Web page production
body{ font-size:12px; font-family:"宋体";}
Indicate the font size and font in the body to unify them.
Set font:font-family: 宋体,Arial
This is because the default fonts of FF and Ie are different
The default font in FF should be Arial
IE in
font-family: Songti If it is Songti, the width of a space is about the width of a Chinese character "wide"
font-family:Arial If it is Arial, the width of one space is roughly the width of one character "k"