<html>
<head>
<style>
.div1{ //div本身就是块级,所以不需要,算span这中标签就是行级,所以需要display:block
width:600px
height:200px
font-size:13px
border:1px solid #f00
}
</head>
<body>
<div class='div1'>
</div>
</body>
</html>
a:link是超链接未点击是的样式a:hover是鼠标指向超链接的样式
a:visited是超链接被点击后的样式
a:link, a:visited {
border-style: solid
border-width: 5px
border-color: transparent
}
这段代码同时控制了超链接未点击和点击过后的样式,
border-style: solid边线为实线
border-width: 5px边线宽度为5个像素
border-color: transparent边线颜色