m.sbmmt.com]; 2. In the CSS selector Use color color style CSS code.">
How to set text color in css: 1. Use the color color style in the DIV tag, the code is [
m.sbmmt.com] ;2. Use the color color style CSS code in the CSS selector.
The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.
How to set text color in css:
1. Use the color color style in the DIV tag
m.sbmmt.com
2. Use the color color style CSS code in the CSS selector:
.divcss5{color:#00F} /* 设置对象divcss5内文字为蓝色 */
Extended reading: Here are instructions for setting this style using CSS comments, understand CSS comments
3. Complete example of DIV CSS color style:
Css code:
The code is as follows:
.divcss5{color:#00F} /* 设置对象divcss5内文字为蓝色 */
HTML code:
The code is as follows:
标签内使用color css样式
m.sbmmt.com 红色外部样式表设置对象color颜色
m.sbmmt.com 蓝色
Related learning recommendations:css tutorial
The above is the detailed content of How to set text color in css. For more information, please follow other related articles on the PHP Chinese website!