The CSS border properties define the borders around an element.
border 有如下属性
border-width
border-style
border-color
上下左右的 border-style 和顺序相关。
The border-style property can have from one to four values.
* border-style:dotted solid double dashed;
o top border is dotted
o right border is solid
o bottom border is double
o left border is dashed
* border-style:dotted solid double;
o top border is dotted
o right and left borders are solid
o bottom border is double
* border-style:dotted solid;
o top and bottom borders are dotted
o right and left borders are solid
* border-style:dotted;
o all four borders are dotted
可以简写
border:5px solid red;
When using the border property, the order of the values are:
* border-width
* border-style
* border-color
具体参见:[url]http://www.w3schools.com/css/css_border.asp[/url]
border 有如下属性
border-width
border-style
border-color
上下左右的 border-style 和顺序相关。
The border-style property can have from one to four values.
* border-style:dotted solid double dashed;
o top border is dotted
o right border is solid
o bottom border is double
o left border is dashed
* border-style:dotted solid double;
o top border is dotted
o right and left borders are solid
o bottom border is double
* border-style:dotted solid;
o top and bottom borders are dotted
o right and left borders are solid
* border-style:dotted;
o all four borders are dotted
可以简写
border:5px solid red;
When using the border property, the order of the values are:
* border-width
* border-style
* border-color
具体参见:[url]http://www.w3schools.com/css/css_border.asp[/url]
本文详细介绍了CSS中边框属性的使用方法,包括border-width、border-style和border-color等属性的设置方式及其简写形式。提供了不同组合下边框样式的实例。
8505

被折叠的 条评论
为什么被折叠?



