Control | Web page now most of the site are using CSS to set the font size to 12px, pixel is also relative to the size of the unit, but only relative to the screen resolution, when the screen resolution is certain, if you feel too small words, reading difficulties, in the non-standard browser can do nothing, so say, If you change the unit to EM, then you can use CTRL + mouse scrolling to enlarge the word or use the View > Text size on the menu to change the size of the word.
How to Set 1. In the body tag to set the font size to
62.5%, if there is no CSS in the body settings, then the browser default size is 16px, set 62.5%, the font size =16px*62.5%=10px, then you can use EM conveniently set size, For example, you need to use 12px, just set 1.2em.
body{
font-size:62.5%;
}
h1{
The size of the fong-size:1.4em;/* H1 is equivalent to 14PX * *
}
2.body font size is set to 75%, the font size =16px*75%=12px,1em equivalent to 12px.
body{
font-size:75%;
}
h1{
The size of the fong-size:1.5em;/* H1 is equivalent to 18PX * *
}
The first method is better. If it is English website, can also set for small, x-small ... Of course, the design requirements for the page will be higher.
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.