This article brings the content is about the CSS Text style properties in the introduction (with code), there is a certain reference value, the need for friends can refer to, I hope to help you.
1. Set Text font--font-family
Attribute values are suggested in English blackbody Arial;
Microsoft Jacob Black "Microsoft Yahei";
The song body "SimSun" increases the loading speed;
Set optional fonts separated by commas)
Index.html
<!doctype html>
Index.css
p{ font-family: "SimSun";}
2. Set the text size--font-size
Index.css
p{ font-size:21px;}
3. Set the text to bold--font-weight
Property value: normal;
Bold/bolder, Bold
Index.css
p{ Font-weight:bold;}
4. Set Text to italic--font-style
Attribute value: italic;
Index.css
p{ Font-style:italic;}
5. Set the English as a small capital letter font
Index.css
P{font-variant:small-caps;}
6. Set the text color
Index.css
p{ Color:lightgreen;}
7. Set Text background color
Index.css
p{ Background-color:lightblue;}