outline-style 该属性是用于规定元素的轮廓样式属性。
outline-style: auto; outline-style: none; outline-style: dotted; outline-style: dashed; outline-style: solid; outline-style: double; outline-style: groove; outline-style: ridge; outline-style: inset; outline-style: outset; outline-style: initial; outline-style: unset; outline-style: inherit;
值 | 描述 |
---|---|
<'outline-style'> | 此关键词表示轮廓属性的样式。详见 outline-style |
HTML
<div id="red"> </div>
CSS
#red { width: 200px; height: 200px; outline: 6px red; outline-style: solid; }
执行结果