ITeye博客

css border property

lokvin · 2009-09-03 17:11 · Markdown

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

具体参见:http://www.w3schools.com/css/css_border.asp

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。