outline-width属性设置轮廓的宽度
实例代码:
<html>
<head>
<meta charset="utf-8">
<style>
p{
border:1px solid black;
width:300px;
margin-left:5px;
outline-style:solid;
outline-color:red;
}
.ex1{
outline-width:thin;
}
.ex2{
outline-width:medium;
}
.ex3{
outline-width:thick;
}
.ex4{
outline-width:4px;
}
</style>
</head>
<body>
<h1>outline-style 属性</h1>
<p class="ex1">细的轮廓</p>
<p class="ex2">中等的轮廓</p>
<p class="ex3">粗的轮廓</p>
<p class="ex4">4像素粗轮廓</p>
</body>
</html>
~
运行效果:
评论