实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<html><!DOCTYPE html>
2
<html>
3
<head>
4
<style>
5
p {border:1px solid red;}
6
p.dotted {outline-style:dotted;}
7
p.dashed {outline-style:dashed;}
8
p.solid {outline-style:solid;}
9
p.double {outline-style:double;}
10
p.groove {outline-style:groove;}
11
p.ridge {outline-style:ridge;}
12
p.inset {outline-style:inset;}
13
p.outset {outline-style:outset;}
14
</style>
15
</head>
16
<body>
17
18
<p class="dotted">A dotted outline</p>
19
<p class="dashed">A dashed outline</p>
20
<p class="solid">A solid outline</p>
21
<p class="double">A double outline</p>
22
<p class="groove">A groove outline</p>
23
<p class="ridge">A ridge outline</p>
24
<p class="inset">An inset outline</p>
25
<p class="outset">An outset outline</p>
26
<b>Note:</b> IE8 supports the outline properties only if a !DOCTYPE is 
27
specified.
28
</body>
29
</html>