?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
outline:<' outline-width '> || <' outline-style '> || <' outline-color '>
默認(rèn)值:看每個(gè)獨(dú)立屬性
適用于:所有元素
繼承性:無(wú)
動(dòng)畫(huà)性:看每個(gè)獨(dú)立屬性
計(jì)算值:看每個(gè)獨(dú)立屬性
相關(guān)屬性: <' outline-offset '>
<' outline-width '>:指定輪廓邊框的寬度。
<' outline-style '>:指定輪廓邊框的樣式。
<' outline-color '>:指定輪廓邊框的顏色。
outlines相關(guān)屬性不占據(jù)布局空間,不會(huì)影響元素的尺寸;
outlines可能是非矩形;
不允許類似 <' border '> 屬性那樣能將自身拆分為 <' border-top '> , <' border-right '> , <' border-bottom '> , <' border-left '>
對(duì)應(yīng)的腳本特性為outline。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-7.0 | 2.0+ | 4.0+ | 6.0+ | 15.0+ | 6.0+ | 2.1+ | 18.0+ |
8.0+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>outline_CSS參考手冊(cè)_web前端開(kāi)發(fā)參考手冊(cè)系列</title> <meta name="author" content="Joy Du(飄零霧雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test{width:100px;padding:10px;outline:2px solid #f00;border:3px solid #333;} </style> </head> <body> <div class="test">注意邊框線外面的紅色輪廓</div> </body> </html>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例