×
参考手册概览

JavaScript 对象

JavaScript Array 对象手册 JavaScript Array 对象JavaScript Boolean 对象JavaScript Date 对象JavaScript Math 对象JavaScript Number 对象JavaScript String 对象JavaScript RegExp 对象JavaScript 全局属性/函数JavaScript 运算符

Browser 对象

Window 对象Navigator 对象Screen 对象History 对象Location 对象

DOM 对象

HTML DOM DocumentHTML DOM 元素对象HTML DOM 属性对象HTML DOM 事件对象

HTML 对象

<a><area><audio><base><blockquote><body><button><canvas><col><colgroup><datalist><del><details><dialog><embed><fieldset><form><iframe><frameset ><img><ins><input> - button<input> - checkbox<input> - color<input> - date<input> - datetime<input> - datetime-local<input> - email<input> - file<input> - hidden<input> - image<input> - month<input> - number<input> - range<input> - password<input> - radio<input> - reset<input> - search<input> - submit<input> - text<input> - time<input> - url<input> - week<keygen><link><label><legend><li><map><menu><menuItem><meta><meter><object><ol><optgroup><option><param><progress><q><script><select><source><style><table><td><th><tr><textarea><title><time><track><video>

Style borderImageWidth 属性


HTML DOM Style 对象HTML DOM Style 对象


实例

规定图像边框的宽度:

document.getElementById("myDIV").style.borderImageWidth="20px 30px";

尝试一下 »

定义和用法

borderImageWidth 属性规定图像边框的宽度。


浏览器支持

Internet Explorer Firefox Opera Google Chrome Safari

Opera 不支持 borderImageWidth 属性。

Internet Explorer 10 及其之前的版本不支持 borderImageWidth 属性。

Safari 5 及其之前的版本不支持 borderImageWidth 属性。

请参阅 borderImage 属性来替代它!


语法

返回 borderImageWidth 属性:

object.style.borderImageWidth

设置 borderImageWidth 属性:

object.style.borderImageWidth="number|%|auto|initial|inherit"

属性值

描述
length 一个规定边框宽度大小的长度单位(px)。A length unit (px) specifying the size of the border-width
number 默认值是 1。表示相应的边框宽度的倍数。
% 相对于边框图像区域大小的百分比:水平偏移参照区域的宽度,垂直偏移参照区域的高度。
auto 如果规定了该属性,宽度是相应图像切片固有的宽度或高度。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

技术细节

默认值: 1
返回值: 字符串,表示元素的 border-image-width 属性。
CSS 版本 CSS3


相关文章

CSS 参考手册:border-image-width 属性


HTML DOM Style 对象HTML DOM Style 对象


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)