<head<title边框颜色属性 border-color</title
.d1 {border-color:#FFA500;border-style:solid;}
.d2 {border-color:#33CC00;border-style:solid;}
.d3 {;border-color:#6600FF;border-style:solid;}
.d4 {border-color:#FF6347;border-style:solid;}
.d5 {border-color:gray;border-style:solid;}</style</head<body<div class= "d1"这个div的CSS边框颜色(border-color)属性值是橙色。</div
<div class= "d2"这个div的CSS边框颜色(border-color)属性值是绿色。</div
<div class= "d3"这个div的CSS边框颜色(border-color)属性值是蓝色。</div
<div class= "d4"这个div的CSS边框颜色(border-color)属性值是番茄红。</div
<div class= "d5"这个div的CSS边框颜色(border-color)属性值是灰色。</div</body</html=============================================<html<head<title边框风格属性 border-style </title
<style type="text/css"
.d1 {border-style:none;}
.d2 {border-style:solid;}
.d3 {border-style:dotted;}
.d4 {border-style:dashed;}
.d5 {border-style:double;}
.d6 {border-style:groove;}
.d7 {border-style:ridge;}
.d8 {border-style:inset;}
.d9 {border-style:outset;}</style</head<body<div这个div的CSS边框风格(border-style)属性缺省值是none。</div
<div class = "d1"这个div的CSS边框风格(border-style)属性是none。</div
<div class = "d2"这个div的CSS边框风格(border-style)属性是solid。</div
<div class = "d3"这个div的CSS边框风格(border-style)属性是dotted。</div
<div class = "d4"这个div的CSS边框风格(border-style)属性是dashed。</div
<div class = "d5"这个div的CSS边框风格(border-style)属性是double。</div
<div class = "d6"这个div的CSS边框风格(border-style)属性是groove。</div
<div class = "d7"这个div的CSS边框风格(border-style)属性是ridge。</div
<div class = "d8"这个div的CSS边框风格(border-style)属性是inset。</div
<div class = "d9"这个div的CSS边框风格(border-style)属性是outset。</div</body</html