About font-family:"Sans serif" (sans-serif), such as black body, Microsoft Jas"Lined" (Serif), such as Song Dynasty, new songThe programmer sets the font that is not necessarily available on the client computer. So not the more new the better the font the better, if the programmer set the
CSS Chinese font Unicode encoding table, cssunicode
Set the font name in CSS and write Chinese directly. But in the file encoding (GB2312, UTF-8, etc.) does not match will produce garbled error.
To avoid these errors, you can use Unicode encoding to write the font name in
To set the font name in CSS, it is possible to write Chinese directly. However, when the file encoding (GB2312, UTF-8, etc.) does not match, it will produce garbled errors.To do this, you can avoid these errors by using Unicode encoding directly in CSS to write font names. Using Unicode to write Chinese
Inadvertently found that, for the same HTML markup, the CSS in the same time when the font and Line-height attributes, you have to be careful, the two are written in a different order, resulting in a difference in the display effect.
That
>>> If you write the font first, then write Line-height, the display effect is normal
>>> If you first write line-height, then
Inadvertently found that for the same HTML tag, in the CSS in the application of both the font and Line-height properties, you have to be careful, the two writing order is not the same, will result in different display effects.
That
>>> If you write font first, then write Line-height, the display works
>>> If you write Line-height first, then write
=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/5D/wKioL1ZmvVXh6nPsAAAi0Tsotf8252.png "style=" float: none; "title=" Image 8.png "alt=" Wkiol1zmvvxh6npsaaai0tsotf8252.png "/>650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/77/5E/wKiom1ZmvOaQM-eMAAAihjObZF4878.png "style=" float: none; "title=" Image 9.png "alt=" Wkiom1zmvoaqm-emaaaihjobzf4878.png "/>3. Not conducive to maintaining the new icon has to modify the whole diagram, sometimes in order to ensure that a certain type of area, you
1{2 font-family:"Microsoft Yahei";/*font for Microsoft Ya-Black*/3 font-size:20px;/*font size is 20px*/4 Color:Red;/*font color is red*/5 Font-weight:Bold;/*
Just encountered a CSS loading font cross-domain problem, record it.A site's dynamic request is a different domain name than a static file request. The domain name of the site is www.domain.com, and the domain name of the static file is st.domain.com.Problem:Page load CSS file: External fonts are called in this CSS as
1. Concept
This little red dot is an icon, and the icon is actually a font in CSS.
2. Why is an icon that is essentially a font?
2.1 Images increase the size of the total file.2.2 Images add additional HTTP requests, greatly reducing the performance of the Web page.2.3 Images cannot be scaled much, as the image zooms in and out and is dist
To set the font name in CSS, it is possible to write Chinese directly. However, when the file encoding (GB2312, UTF-8, etc.) does not match, it will produce garbled errors. The XP system does not support Chinese like Microsoft Jas.Scenario One: You can use English instead. For example font-family: "Microsoft Yahei".Sce
Song Body
SimSun
Blackbody
Simhei
Microsoft Ya-Black
Microsoft Yahei
Microsoft is in black
Microsoft Jhenghei
New song Body
Nsimsun
New Fine Ming Body
PMingLiU
Fine Ming Body
MingLiU
Mark in italics
Dfkai-sb
Imitation
Fangsong
Italics
Kaiti
Imitation _gb2312
fangsong_gb2312
Italic _gb2312
When css is used to define the font, you may do the following:
Font-size: 1em;Line-height: 1.5em;Font-weight: bold;Font-style: italic;Font-variant: small-caps;Font-
The CSS code writing sequence of font and line-height is different, which leads to different display effects. When the font and line-height attributes are applied to the same HTML Tag, you have to be careful. The writing sequence of the two is different, which may lead to different display effects.
That is:
>>> If you write f
XP use Chrome (also including FF, opera, IE and other support CSS definition style browser), for the beautiful want to force the page font display as Microsoft Black, but on some sites, some characters will not be displayed, such as: www.taobao.com,https:// Www.zybuluo.com/mdeditor, the reason is because these sites use "icon Font", and Microsoft ya Black can not
Commonly used CSS Chinese font Unicode encoding table, cssunicodeWhy do we need to set the font to Unicode in CSS?
Set the font name in CSS and write Chinese directly. But in the file encoding (GB2312, UTF-8, etc.) does not match
When looking at the Php.net document, I found the English font of the page ("Fira Mono") pretty good,
But put it on my own web page and it gets down. What is the reason, please? (same computer, same browser)
Reply content:
When looking at the Php.net document, I found the English font of the page ("Fira Mono") pretty good,
But put it on my own web page and it gets down. What is the reason, please? (sa
This article will detail the abbreviations of the font in CSS, and have a reference from a small partner of interest.
The instance code is as follows:
Summarize:
1, shorthand, font-size and line-height only through the slash/form a value, can not be written separately.
2, the order can not be changed. This shorthand method only works if you specify both
Font-familyFont family.font-familyYou can save multiple font names as a "fallback" system. If the browser does not support the first font, it will try the next one. The browser uses the first value that it can recognize.Simple example:body { font-family: "Microsoft Yahei",
Unicode simple to say when making a Web page in order to take into account some browser CSS style document is generally not outNow the Chinese font, especially {}, so by referring to the following table to the corresponding transcoding, you can change the Chinese name into EnglishName, Unicode, Unicode2 note unicode2 is the direct output of the text,For example: Microsoft Ya-hei, our
Li Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Ide:visual Studio 2017
Browser:chrome
Os:win7
CodeDOCTYPE HTML>HTML>Head> MetaCharSet= "Utf-8" /> title>title> styletype= "Text/css">
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.