outline-offset:<length> | inherit
相关属性:outline , outline-width , outline-style , outline-color
哎呀,出了点小问题,您可以稍后重试!
未填写内容或格式不正确!
outline-offset:<length> | inherit
相关属性:outline , outline-width , outline-style , outline-color
outline-offset 可以让轮廓偏离容器边缘,即可以调整外框与容器边缘的距离。参见outline属性。
类型 | Internet Explorer | Firefox | Chrome | Opera | Safari |
---|---|---|---|---|---|
版本 | (×)IE6 | (√)Firefox 3.0.10 | (√)Chrome 2.0.x | (√)Opera 9.64 | (√)Safari 4 |
(×)IE7 | (√)Firefox 3.5 | ||||
(√)IE8 | |||||
.outline_offset{ width:200px; height:80px; margin:10px; padding:15px; background:#f0f3f9; outline:3px dotted #beceeb; outline-offset:5px; }
<div class="outline_offset">是否可见背景外5像素处的轮廓外框?</div>