Coding | tips | Web page
Sometimes, because of the visitor's browser setup problem, your page looks different to others than you expect. Are we the only ones who are "still slaughtered"? No, here's how to get your page fixed by your thoughts.
1 language encoding of text
Your Chinese page may be in someone else's browser is displayed as garbled, this is because someone else's browser text encoding is not Simplified Chinese. Add the next sentence between
<meta http-equiv= "Content-type" content= "text/html;charset=gb2312" >
2 fixing of the font size
The browser's font size is set to five items-largest, large, medium, small, and smallest, if you are in the medium word layout, in other people's large word browser may not be very beautiful. Add the following CSS statement between
<style>
<!--
p {font-size:9pt};
td {FONT-SIZE:9PT};
Li {font-size:9pt};
Select {FONT-SIZE:9PT};
-->
<style>
Where the font-size:9pt size is fixed at 9 lbs (typically this value), Netscape's browser does not support the retention of Li and select.
3 Fixed Font
General browser fonts are set to XXFarEastFont-Arial, but others are set to italic. By adding the following CSS statement between
<style>
<!--
P {font-family: "Song Body"};
TD {Font-family: "Song Body"};
Li {font-family: "Song Body"};
Select {font-family: "Song Body"};
-->
<style>
2 and 3 can be used in combination, such as p {font-family: "Song Body"; font-size:9pt};