a{text-decoration: underline} /*链接无下划线none,有为underline*/
a:link {color: #00007ftext-decoration: underline} /*未访问的链接 */
a:visited {color: #65038etext-decoration: underline} /*已访问的链接*/
a:hover{color: #ff0000text-decoration: underline} /*鼠标在链接上 */
a:active {color: #ff0000text-decoration: underline} /*点击激活链接*/
如果一直都是蓝色不变,也可以直接
a{color:blue}
一,CSS中字体颜色的设置:1,代码:color
:
#f00
2,color是颜色的意思,color用来设置一个标签的前景色,表现出来也就是元素文本的颜色;
3,比如给字体加蓝色,可以使用这个样的语句<
span
style
=
color:
#
ff0000;background
-
color:
transparent
">蓝色文字
span
蓝色字母<
span
style
=
color:
#
ff0000;background
-
color:
transparent
">
SPAN
文字的蓝色指定;
二,CSS中字体大小的设置(字体风格):
1,代码:font-size
:
1em
2,font-size
翻译为中文是“字体尺寸”,它的单位一般是px(像素)或em(字体高度)。