CSS属性 - border-bottom 下边框属性

说明

该CSS属性用来设定下边框宽度,风格和颜色。边框区域的定义,请参见 CSS 盒子模式 (Box Model)

值: [ <'border-width'> || <'border-style'> || <color> ] | inherit

可用值值的说明
widthborder-bottom-width 值
styleborder-bottom-style 值
colorborder-bottom-color 值

border-bottom 是 border-bottom-width, border-bottom-style, border-bottom-color 的一种快捷的综合写法。

如果 color 值没有设,则采用文本的颜色。

示例代码

.d1 {border-bottom:solid red;}
.d2 {border-bottom:5px solid #FF0000;}
.d3 {border-bottom:thick solid;}

继承

适用于

所有元素