This chapter is the main role of C s S
This chapter describes the text-related CSS instructions. Tongmong a website is the most text, and through these text-related CSS instructions, you can lay the content of your web page. This chapter will be introduced to you by two parts. The first part is a CSS directive of a word type, configure a variety of styles of the textual font; the second part introduces the CSS directive of the text, to control The appearance and fake way of text paragraphs.
Modularity C s S command
Font-Family Settings Text Type
stand by:
IE3, IE4
Be applicable:
All elements
Possible value:
default value:
Depending on the browser
Inheritance:
Have
General Example: span {family-name: "Standard"}
Coaxial example:
Font-style setting font styles
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
Normal ordinary word italic oblique word oblique slope
default value:
Normal
Inheritance:
Have
General Example: span {font-style: italic}
Coaxial example:
Font-Weight Setting Dictionaries
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
Normal ordinary word bold bold word Bolder slightly thick Lighter relative to the parent element is slightly 100,200,300,400,500,600,700,800,400,500,600,700,800,900. Number is made from small to large representative strokes from fine to large representative strokes
default value:
Normal
Inheritance:
Have
General Example: span {font-weight: bolder}
Coaxial example:
Font-size setting text size
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
MEDIUM
Inheritance:
Have
General example: span {font-size: 12pt}
Coaxial example:
Font-Variant Settings Text Conversion
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
Normal ordinary word Small-Caps convert lowercase text to uppercase
default value:
Normal
Inheritance:
Have
General Example: span {font-variant: Small-Caps}
Coaxial example:
Font integrated setting font properties
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
default value:
no
Inheritance:
Have
General Example: span {font: bolder small-caps 12PT / 120% arial}
Coaxial example:
Textual quality C s S command
Line-height setting column
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
Normal ordinary columns high, depending on the font change rational height, depending on the browser
default value:
Normal
Inheritance:
Have
General Example: Div {line-height: 120%}
Coaxial example:
Text-align setting text pair
stand by:
IE3, IE4, NC4 applicable:
Block element
Possible value:
Center is left to the right left Justify on the right left.
default value:
Depending on the browser
Inheritance:
Have
General Example: Div {text-align: center}
Coaxial example:
Vertical-align setting vertical pair
stand by:
IE4
Be applicable:
Coaxial element
Possible value:
TOP Top Bottom Top Bottom Top Bottom Top Line Middle Element Baseline Put the Element SUB to Central SUB Put the Element TEXT-TOP to the Late Top TEXT-5 TEXT-BOTTOM for the text of the text
default value:
Baseline
Inheritance:
Have
General Example: span {vertical-align: sub}
Coaxial example:
Text-Decoration Settings Text Decoration
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
None normal word underline text 加 线 er er text plus top line-through text plus deleting line BLINK setting text flashing
default value:
None
Inheritance:
Have
General Example: span {text-decoration: blink}
Coaxial example:
Text-Transform Settings Text Conversion
stand by:
IE3, IE4, NC4
Be applicable:
All elements
Possible value:
None ordinary word Capitalize converts a letter in English to uppercase Uppercase converts all text to uppercase LowerCase to convert all text to lowercase
default value:
None
Inheritance:
Have
General Example: span {text-transform: Uppercase}
Coaxial example:
Letter-spacing setting alphabet interval
stand by:
IE4
Be applicable:
All elements
Possible value:
Normal does not change the alphabet interval, using the browser preset value
default value:
Normal
Inheritance:
Have
General Example: span {letter-spacing: 0.5pt}
Coaxial example:
TEXT-Indent setting text rearrangement
Support: IE3, IE4, NC4
Be applicable:
Block element
Possible value:
default value:
0
Inheritance:
Have
General example: div {text-indent: 3PT}
Coaxial example:
Transfer from: Dynamic Network Production Guide www.knowsky.com