🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# outline-style **版本:CSS3** ### 语法: **outline-style**:none | dotted | dashed | solid | double | groove | ridge | inset | outset 相关属性:[outline](#) , [outline-width](#) , [outline-offset](#) , [outline-color](#) ### 取值: none:默认值。定义无轮廓。dotted:定义一个点状的轮廓。dashed:定义一个虚线轮廓。solid:定义一个实线轮廓。double:定义一个双线轮廓。双线的宽度等同于[outline-width](#)的值。groove:定义一个3D凹槽轮廓。此效果取决于[outline-color](#)的值ridge:定义一个3D凸槽轮廓。此效果取决于[outline-color](#)的值inset:定义一个3D凹槽轮廓。此效果取决于[outline-color](#)的值outset:定义一个3D凸槽轮廓。此效果取决于[outline-color](#)的值 ### 说明: outline-style 属性用于设置一个元素的整个轮廓的样式。参见[outline](#)属性。 ### 兼容性: <table><thead><tr><th class="type">类型</th> <th class="type_ie"><img src="https://box.kancloud.cn/2015-09-02_55e5d38780462.png" alt="IE" />Internet Explorer</th> <th class="type_firefox"><img src="https://box.kancloud.cn/2015-09-02_55e5d3878bced.png" alt="Firefox" />Firefox</th> <th class="type_chrome"><img src="https://box.kancloud.cn/2015-09-02_55e5d3879303c.png" alt="Chrome" />Chrome</th> <th class="type_opera"><img src="https://box.kancloud.cn/2015-09-02_55e5d3879aa6d.png" alt="Opera" />Opera</th> <th class="type_safari"><img src="https://box.kancloud.cn/2015-09-02_55e5d387a3c18.png" alt="Safari" />Safari</th> </tr></thead><tbody><tr><td rowspan="4" class="version">版本</td> <td class="support no"><span>(×)</span>IE6</td> <td class="support yes"><span>(√)</span>Firefox 3.0.10</td> <td class="support yes"><span>(√)</span>Chrome 2.0.x</td> <td class="support yes"><span>(√)</span>Opera 9.64</td> <td class="support yes"><span>(√)</span>Safari 4</td> </tr><tr><td class="support no"><span>(×)</span>IE7</td> <td class="support yes"><span>(√)</span>Firefox 3.5</td> <td></td> <td></td> <td></td> </tr><tr><td class="support yes"><span>(√)</span>IE8</td> <td></td> <td></td> <td></td> <td></td> </tr><tr><td></td> <td></td> <td></td> <td></td> <td></td> </tr></tbody></table> ### 示例: ![](https://box.kancloud.cn/2015-09-02_55e5d387ab2e7.png) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="utf-8" /><meta name="robots" content="all" /><meta name="author" content="Tencent-ISRD" /><meta name="Copyright" content="Tencent" /><title>outline-style</title></head><body><div style="width: 160px;padding: 10px;height: 30px;border: 2px solid black;outline-color:#897048;outline-style:dotted;outline-width:2px;outline-offset: 5px;">这绘制的是一个轮廓边框</div></body></html> 复制代码 Copyright © 2009 [Tencent ISD webteam](http://webteam.tencent.com/). All Rights Reserved ### 快速跳转 - [语法](# "跳转到“语法”") - [取值](# "跳转到“取值”") - [说明](# "跳转到“说明”") - [兼容性](# "跳转到“兼容性”") - [示例](# "跳转到“示例”")