Home >Web Front-end >HTML Tutorial >CSS text style_html/css_WEB-ITnose

CSS text style_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:55:181010browse

font-family: Usually the text of the article uses the highly readable serif font, which makes users less likely to fatigue after reading for a long time. The titles and tables use the more eye-catching sans-serif font. This principle is also recommended in web design and browser settings.

font-size: The unit px represents specific pixels, so its display size is related to the size of the monitor and its resolution. Using "%" or "em" is a ratio relative to the parent tag. If the font size of the parent tag is not set, it is relative to the browser's default value.

Sometimes you want the text to be not only underlined, but also underlined or strikethrough. In this case, you can assign the values ​​​​of underline and overline to text-decoration at the same time and separate them with spaces.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn