15th Chapter CSS Text StylesFirst, Font summarySecond, font settings1,font-size(1)Xx-small}(2)X-small}(3)Small} sets the size of the font, each value from small to large fixed value(4)Mediue}(5)Large}(6)X-large}(7)Xx-large}example,p{font-size:50px;}(8)Smaller} sets the font size relative to the parent element font(9)larger}example,body{font-size:50px; the size of the parent element font}p{Font-size:smaller; A little bit smaller than the parent element}() digital +px(one) the number +% The percen
Select Glyph Effect
Sometimes in order to emphasize and highlight the content, it can be achieved by changing the glyphs, such as bold and italic. You can also use the effect simultaneously,
On the Formatting toolbar, the button that sets the glyph is lit to indicate that the glyph effect is applied. Otherwise, the glyph effect is canceled.
: Indicates the use of bold effects.
: Indicates the use of italic
qualified font.
Any font names that contain spaces must be enclosed in single or double quotes.
The font family section can also be given with the font properties.
Font style
Syntax: Font-style: Allow Value: normal | Italic | ObliqueInitial value: NormalApply to: All objectsBackward-compatible: Yes
The font style property defines the font to display with one of three methods: Normal (normal), italic (
Font for CSS attributes)
Font for CSS attributes)
Font: [["|]? [/
]? ]
Composite attributes. The attributes are described below.
It must contain both font-size and font-family, and the order of these two values cannot be changed. The values of other keywords are placed before these two values, and the order can be randomly disrupted.
You can place an optional line-height value on the font-size value as an ancillary value of the font size, followed by a font-family.
Font-style: norma
words, if the previous Chinese and English are included, then the latter is invalid (if she is a description of English or English);⑥font-weight: Font BoldValues: normal (unchanged), bold (bold), bolder (relatively few), lighter (rarely used).Values: 100, 200, etc. until 900, general fonts only support 400 and 900⑦font-style: Font italicValues: Normal (OK), italic (italic, font has
Each time I debug a webpage locally, a css request is loaded: fonts. googleapis. comcss? FamilySource + Sans + Pro: 300,400,600,700,300 italic, 400 italic, and 600italic. However, the request may fail due to the wall or any such request and the webpage is blocked...
Each time I debug a webpage locally, a css request is loaded:Http://fonts.googleapis.com/css? Family = Source + Sans + Pro: 300,400,600,700,30
: This article mainly introduces the spam Wordpress, which always references the Web font files on fonts.googleapis.com. if you are interested in the PHP Tutorial, please refer to it. Search in the code directory with Editplus,
Comment out all references:
"C: \ xampp-1.8.3 \ htdocs \ wordpress-4.0 \ wp-uplodes \ js \ tinymce \ plugins \ compat3x \ css \ dialog.css ):
@ Import url (// fonts.googleapis.com/css? Family = Open + Sans: 300 italic, 400
ImportAndroid.os.Bundle; 3 Importandroid.text.Html; 4 ImportAndroid.widget.TextView; 5 6 Public classAndroidfroncolortestextendsActivity {7 @Override8 Public voidonCreate (Bundle savedinstancestate) {9 Super. OnCreate (savedinstancestate); Ten One Setcontentview (R.layout.main); A -TextView Htmlformatetextview =(TextView) Findviewbyid (R.id.testtextview); - theString Source = "This is just a test, test ; - - Htmlformatetextview.settext
(R.layout.main);
Mtextview = (TextView) Findviewbyid (R.id.mytextview);
Create a Spannablestring object
MSP = new spannablestring (font test font size half twice times foreground background color normal bold italic bold italic underline strikethrough x1x2 phone mail website sms MMS map x Axis synthesis ");
Set Font (DEFAULT,DEFAULT-BOLD,MONOSPACE,SERIF,SANS-SERIF)
Msp.setspan (Ne
First look at the effectThe official of the web is such an explanation of HTML The Adding emphasis to the text also requires skill. If you emphasize too much, some important phrases will be omitted, and if you emphasize too little, you will not be able to really highlight the important parts. This is the same as seasoning, it is best not to abuse the emphasis.Although the contents of the In addition to highlighting, consider using HTML Browsers usually display the contents of the If common sense
placement of words, graphs, tables, etc.
●
Do not wrap
Make Text wrap not too long
●
Suggested line feed
Default line feed
Font mark
●
Aggravated tone
Generate bold and bold font Effects
●
Bold mark
Generate a bold font Effect
●
Highlight
Italics appear in the font
●
body) (these sub-elements such as p, td, ul, ol, ul, li, dl, dt, and dd ). No other rules are required. All the child elements of the body must display the Verdana font. CSS also supports Special customization. For example, you want the paragraph to have a font of Times. No problem. Create a special rule for p so that it will get rid of the rule of the parent element:
body { font-family: Verdana, sans-serif; } p { font-family: Times, "Times New Roman", serif; }
Deriv
Font for CSS attributes and font for css attributes
Font for CSS attributes)
Font: [[
Composite attributes. The attributes are described below.
It must contain both font-size and font-family, and the order of these two values cannot be changed. The values of other keywords are placed before these two values, and the order can be randomly disrupted.
You can place an optional line-height value on the font-size value as an ancillary value of the font size, followed by a font-family.
Font-style:
different from your font, the document looks very different. This is also true for documents designed with CSS.
In case of various complicated font deformation, such as bold or italic text, the font naming problem is even more confusing. Most people know that italic text looks like a lot, but few people can explain the difference between it and italic text, or e
(This article from http://www.frontfree.net/view/article_73_page1.html)
Lecture 1
(I) Why should I use CSS or CSS?
Example 1: Suppose we want to create a page so that the colors of all H3 texts on the page are green, italic, and. What should we do?
(Click here to see the example)
The above is a relatively "stupid" method, if the current page exists100 Label, you need to define the 100
(Click here to see the example)
Where:
① Font-family:Equivalent;F
Http://www.blog.ce.cn/sp1/zhangnan/14493583725.shtml
CSS naming Rules use English letters, numbers, and underscores (usually in lower case.
I. Short
The abbreviation is mainly used to simplify writing and reduce Code to increase the download speed of webpages. Not all CSS can be abbreviated as below.
(1) font
Font-weight: bold;Font-style: italic;Font-varient: Small-caps;Font-size: 1em;Line-Height: 1.5em;Font-family: verdana, sans-serif;Can be abbrevia
Reprinted from: http://www.jb51.net/css/67658.htmlIn the CSS file, we often see some font names become garbled, this is because the author of the Chinese font name is directly written in Chinese, and then upload or copy copy of the time inadvertently become garbled. In order to avoid this situation, when using the Chinese font in the CSS file, it is best to use the English name of the Chinese font, the English name of our common Chinese font is as follows: Windows comes with fonts:
1. font-family: Set Font type
The user agent iterates through the defined font sequence until it matches a font.
body { font-family: helvetica, verdana, sans-serif; }
As in the font definition, if you do not have a Helvetica font on your machine, but you have Verdana, you will see your text in Verdana.
2. Color: Font ColorsColor can be specified using color name, HEX, RGB, RGBA, HSL, HSLA, Transparent.Because different browsers
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.