x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
p.one {
7
border-style: solid;
8
border-color: #0000ff;
9
}
10
11
p.two {
12
border-style: solid;
13
border-color: #ff0000 #0000ff;
14
}
15
16
p.three {
17
border-style: solid;
18
border-color: #ff0000 #00ff00 #0000ff;
19
}
20
21
p.four {
22
border-style: solid;
23
border-color: #ff0000 #00ff00 #0000ff rgb(250, 0, 255);
24
}
25
</style>
26
</head>
27
28
<body>
29
<p class="one">One-colored border!</p>
30
<p class="two">Two-colored border!</p>
31
<p class="three">Three-colored border!</p>
32
<p class="four">Four-colored border!</p>
33
<p><b>注意:</b> "border-color" 属性 如果单独使用则不起作用. 要先使用 "border-style" 属性来设置 borders .</p>
34
</body>
35
</html>