Web速查-索引

Alt text

定义

outline-width 属性设置元素整个轮廓的宽度

注意:轮廓的样式不能是 none,否则轮廓不会出现。

语法

outline-width :medium|thin|thick|length|inherit

属性值

描述
medium 默认。规定中等的轮廓。
thin 规定细轮廓。
thick 规定粗的轮廓。
length 允许您规定轮廓粗细的值。
inherit 规定应该从父元素继承轮廓宽度的设置。

实例

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>鱼C-零基础入门学习Web(Html5+Css3)</title>
<style type="text/css">
p
{
width: 555px;
border:red solid thin;
outline-style:dotted;
outline-color:#00ff00;
outline-width:3px;
}
</style>
</head>
<body>
<p><b>注释:</b>只有在规定了 !DOCTYPE 时,才支持 outline-color/style/width 属性。</p>
</body>
</html>

注释:只有在规定了 !DOCTYPE 时,才支持 outline-color/style/width 属性。

浏览器支持

表格中的数字表示支持该属性的第一个浏览器版本号

Safari Chrome FireFox IE
6.0 3.0 4.0 9.0