[css]代码库
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>边框颜色属性 border-color</title>
<style type="text/css">
.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>
<br>
<div class= "d2">这个div的CSS边框颜色(border-color)属性值是绿色。</div>
<br>
<div class= "d3">这个div的CSS边框颜色(border-color)属性值是蓝色。</div>
<br>
<div class= "d4">这个div的CSS边框颜色(border-color)属性值是番茄红。</div>
<br>
<div class= "d5">这个div的CSS边框颜色(border-color)属性值是灰色。</div>
<br>
</body>
</html>
[代码运行效果截图]