?
This document uses PHP Chinese website manual Release
outline-offset:<length>
默認(rèn)值:0
適用于:所有元素
繼承性:無(wú)
動(dòng)畫性:當(dāng)取值為<length>時(shí)
計(jì)算值:絕對(duì)長(zhǎng)度
<length>:用長(zhǎng)度值來(lái)定義輪廓偏移。允許負(fù)值。
outlines相關(guān)屬性不占據(jù)布局空間,不會(huì)影響元素的尺寸;
outlines可能是非矩形;
outline-offset是以border邊界作為參考點(diǎn)的,從0開(kāi)始,正值從border邊界往外延,負(fù)值從border邊界往里縮。
對(duì)應(yīng)的腳本特性為outlineOffset。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-11.0 | 2.0+ | 4.0+ | 6.0+ | 15.0+ | 6.0+ | 2.1+ | 18.0+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>outline-offset_CSS參考手冊(cè)_web前端開(kāi)發(fā)參考手冊(cè)系列</title> <meta name="author" content="Joy Du(飄零霧雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test{width:220px;padding:10px;outline:1px dashed #333;outline-offset:4px;border:3px solid #333;} </style> </head> <body> <div class="test">注意虛線輪廓偏移容器的距離<br />outline-offset:4px;</div> </body> </html>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例