实例代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>输出轮廓样式</title>
<style type="text/css">
p{width:300px;outline-color:red;
outline-width:3px;
line-height:1em;
padding:5px;
}
p.dotted{outline-style:dotted;}
p.dashed{outline-style:dashed;}
p.solid{outline-style:solid;}
p.double{outline-style:double;}
p.groove{outline-style:groove;}
p.ridge{outline-style:ridge;}
p.inset{outline-style:inset;}
p.outset{outline-style:outset;}
</style>
</head>
<body>
<h3>输出轮廓全部样式实例</h3>
<p>none:默认,定义无轮廓</p>
<p class="dotted">dotted: 定义点状轮廓</p>
<p class="dashed">dashed:定义虚线轮廓</p>
<p class="solid">solid:定义实线轮廓</p>
<p class="double">double:定义双线轮廓</p>
<p class="groove">groove:定义3d凹槽轮廓</p>
<p class="ridge">ridge:定义3D凸槽轮廓</p>
<p class="inset">inset:定义3D凹边轮廓</p>
<p class="outset" >outset:定义3D凸边轮廓</p>
<p>inherit:规定应该从父元素继承轮廓样式的设置</p>
</body>
</html>
运行效果:
评论