CSS border-bottom-width 属性 | CSS 边框 | CSS教程

返回到:CSS 边框 | CSS教程

属性定义及使用说明

border-bottom-width属性设置元素的底部边框宽度。

注意务必先声明border-style属性才可以设置border-bottom-width属性。元素必须有边框,你才可以改变宽度。

默认值:medium
继承:no
版本:CSS1
JavaScript 语法:object object.style.borderBottomWidth=”thick”

属性值

说明
thin定义细的下边框
medium默认值。定义中等的下边框
thick定义粗的下边框
length允许您自定义下边框的宽度
inherit规定应该从父元素继承边框宽度

浏览器支持

表格中的数字表示支持该属性的第一个浏览器版本号。

属性谷歌IE火狐苹果opera
border-bottom-width1.04.01.01.03.5

实例

设置底部边框宽度:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>Web176教程(web176.com)</title> 
<style>
p 
{
border-style:solid;
border-bottom-width:15px;
}
</style>
</head>
<body>

<p><b>注意:</b> "border-bottom-width" 属性单独使用无效. 要先使用 "border-style"属性设置borders .</p>

</body>
</html>

作者:terry,如若转载,请注明出处:https://www.web176.com/cssprop/5594.html

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2022年4月19日 下午4:58
下一篇 2022年4月19日 下午5:03

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注