<!DOCTYPE html>
<html>
<head>
<meta charset="GBK"/>
<title> change color</title>
<style type="text/css">
body {background-color:tan; }
h1 {color:maroon;font-size:20pt;text-align:center; }
hr {color:white; }
p {font-size:11pt;margin-left:50px;}
a:link{color:green;}
a:visited{color:yellow;}
a:hover{color:black;}
a:active{color:blue;}
</style>
</head>
<body>
<h1>这是标题</h1>
<hr/>
<p>你可以看到这个段落是被设定CSS渲染的。</p>
<p><a href="http://wwww.runoob.com" target="_self"> 这是一个链接</a></p>
</body>
</html>
a 伪类的使用【2018.11.27】
猜你喜欢
转载自blog.csdn.net/weixin_30589127/article/details/84574366
今日推荐
周排行