border-right 简写属性把右边框的所有属性设置到一个声明中。
可以按顺序设置如下属性:
-
border-right-width
-
border-right-style
-
border-right-color
如果不设置其中的某个值,也不会出问题,比如 border-right:solid #ff0000; 也是允许的。
|
默认值:
|
not specified
|
|---|---|
|
继承性:
|
no
|
|
版本:
|
CSS1
|
|
JavaScript 语法:
|
object.style.borderRight="3px solid blue"
|
设置右边框的样式:
p { border-style:solid;border-right:thick double #ff0000;}
