CSS字体与链接(link)

字体

font-family 属性设置文本的字体系列。

多个字体系列是用一个逗号分隔指明:p{font-family:"Times New Roman", Times, serif;}

字体样式:font-style:normal/italic(斜体)/oblique(文字向一边倾斜)

大小:font-size、<h1>~<h6>   相对大小\绝对大小   %/em(16px)

font-variant:小型大写字体 :normal(浏览器显示标准字体)/small-caps(浏览器显示小型大写字体)

font-weight:字体粗细

链接(link)

a:link{...} - 正常,未访问过的链接       

a:visited{...} - 用户已访问过的链接

a:hover{...} - 当用户鼠标放在链接上时

a:active{...} - 链接被点击的那一刻

顺序执行

属性:

文本修饰  a:link {text-decoration:none;}

背景颜色  a:link {background-color:#B2FF99;}

。。。。。。。。等等(链接:www.runoob.com/try/try.php?filename=trycss_link2 、

http://www.runoob.com/try/try.php?filename=trycss_link_advanced

猜你喜欢

转载自blog.csdn.net/weixin_36766850/article/details/84938764