Fixed language encoding, font size, and font size

Source: Internet
Author: User
Sometimes, because of the visitor's browser settings, your page is very different from what you expect.
Is it true that we only have "people are still being slaughtered? No, the following method can fix your page according to your ideas.
1. Language encoding of text
Your Chinese page may be garbled in other browsers, because the text encoding of other browsers is not simplified Chinese. Add the following sentence between <META HTTP-EQUIV = "Content-Type" CONTENT = "text/html; charset = gb2312">
2 Fixed font size
There are five font size settings for the browser: Maximum, large, medium, small, and minimum. If you press the medium font, the font size may not be quite beautiful in other large browsers. Add the following css statement between <Style>
<! --
P {font-size: 9pt };
Td {font-size: 9pt };
Li {font-size: 9pt };
Select {font-size: 9pt };
-->
<Style>
Here, it indicates that the font-size: 9pt size is fixed to 9 lbs (usually this value), and the Netscape browser does not support the li and select fixation.
3 Fixed font
Generally, the font of a browser is set to, but some are also set to. Add the following css statement between <Style>
<! --
P {font-family: ""};
Td {font-family: ""};
Li {font-family: ""};
Select {font-family: ""};
-->
<Style>
2 and 3 can be used in combination, such as p {font-family: ""; font-size: 9pt };

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.