案例:CSS3 案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html>
3
<head>
4
<style type="text/css">
5
p.one
6
{
7
border:red solid thin;
8
outline-style:solid;
9
outline-width:thin;
10
}
11
p.two
12
{
13
border:red solid thin;
14
outline-style:dotted;
15
outline-width:3px;
16
}
17
</style>
18
</head>
19
<body>
20
21
<p class="one">This is some text in a paragraph.</p>
22
<p class="two">This is some text in a paragraph.</p>
23
24
<p><b>注释:</b>只有在规定了 !DOCTYPE 时,Internet Explorer 8 (以及更高版本) 才支持 outline-width 属性。</p>
25
</body>
26
</html>
27