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

CSS
CSS 介绍
CSS 语法
使用 CSS
CSS 背景
CSS 文字
CSS 字体
CSS 边框
CSS 边距
CSS 填充
CSS 列表
CSS 尺寸
CSS 类别
CSS 定位
CSS 伪类
CSS 伪元素
CSS2 Media类型
CSS 摘要
CSS 实例
CSS2 参考资料
CSS2 打印

CSS border-width属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 353 ::
收藏到网摘: 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

登陆 | 还没注册?