当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS border-width属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS border-width属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 354 ::
收藏到网摘: n/a

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

登陆 | 还没注册?