网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: CSS :: CSS border-width属性

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

CSS border-width属性


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1832 :: ::

The border-width property is a shorthand property for setting the width of the four borders in one declaration, can have from one to four values.
border-width属性是可以用一句声明就完成设置四个边的速记法,它可以有1个到4个值

继承性: No

举例

table {border-width: thin}
all four borders will be thin
所有四条边都是细的

table {border-width: thin medium}
top and bottom border will be thin, left and right border will be medium
上下边为细的,左右边为中等宽度的

table {border-width: thin medium thick}
top border will be thin, left and right border will be medium, bottom border will be thick
上边为细,左右边为中等宽度,下边为粗

table {border-width: thin medium thick none}
top border will be thin, right border will be medium, bottom border will be thick, left side will have no border
上边为细,右边为中等宽度,下边为粗,左边没有边框

可用值

描述
thin Defines a thin border.
定义细边
medium Defines a medium border.
定义中等宽度的边框
thick Defines a thick border.
定义粗边框
length Allows you to define the thickness of the borders. 
可让你定义边框的具体粗细

评论 (0) All