案例:CSS3 案例     状态:可编辑再运行    进入横版
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
p.one 
5
{
6
border-style: solid;
7
border-left-width: 15px
8
}
9
p.two 
10
{
11
border-style: solid;
12
border-left-width: thin
13
}
14
</style>
15
</head>
16
<body>
17
18
<p class="one"><b>注释:</b>"border-left-width" 属性如果单独使用的话是不会起作用的。请首先使用 "border-style" 属性来设置边框。</p>
19
<p class="two">Some text. Some more text.</p>
20
21
</body>
22
</html>
23

 运行结果 
 北美留学生论坛