?
This document uses PHP Chinese website manual Release
border-image-width:[ <length> | <percentage> | <number> | auto ]{1,4}
默認(rèn)值:1
適用于:所有元素,除table元素設(shè)置了 <' border-collapse '> 為collapse之外
繼承性:無(wú)
動(dòng)畫性:否
計(jì)算值:指定值
<length>:
用長(zhǎng)度值指定寬度。不允許負(fù)值。
<percentage>:
用百分比指定寬度。參照其包含塊進(jìn)行計(jì)算。不允許負(fù)值。
<number>:
用浮點(diǎn)數(shù)指定寬度。不允許負(fù)值。
auto:
如果auto值被設(shè)置,則 <' border-image-width '> 采用與 <' border-image-slice '> 相同的值。
該屬性用于指定使用多厚的邊框來(lái)承載被裁剪后的圖像。
該屬性可省略,由外部的 <' border-width '> 來(lái)定義。
對(duì)應(yīng)的腳本特性為borderImageWidth。
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-10.0 | 2.0-3.0 | 4.0-14.0 -webkit- | 3.1-5.1 -webkit- | 15.0+ | 3.2-5.1 -webkit- | 2.1-4.3 -webkit- | 18.0+ |
11.0+ | 3.5-14.0 -moz- | 15.0 -webkit- | 6.0+ | 6.1+ | 4.4-4.4.4 | |||
15.0+ | 16.0+ |
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta charset="utf-8" /> <title>border-image-width_CSS參考手冊(cè)_web前端開(kāi)發(fā)參考手冊(cè)系列</title> <meta name="author" content="Joy Du(飄零霧雨), dooyoe@gmail.com, www.doyoe.com" /> <style> .test { padding: 10px; border-image-source: url(skin/border.png); border-image-slice: 27; border-image-width: auto; } </style> </head> <body> <div class="test">用圖片來(lái)做邊框</div> </body> </html>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例