css border-bottom-width属性如何使用

互联网 19-5-29
在css中,border-bottom-width属性是用来设置元素的底部边框宽度。

css border-bottom-width属性值

thin:细的下边框;

medium:中等的下边框(默认值);

thick :粗的下边框;

length:允许您自定义下边框的宽度;

inherit:从父元素继承边框宽度。

语法格式:

border-bottom-width:thin / medium / thick / length / inherit ;

注意:元素必须有边框才可以改变宽度(border-bottom-width属性单独使用没有效果.,要先使用border-style属性设置样式)。

<!doctype html> <html> <head> <meta charset="UTF-8"> <title>css border-bottom-width属性笔记</title> <style> #bbw { border-style:solid; border-bottom-width:10px; } </style> <head/> <body> <p id="bbw">css border-bottom-width属性演示</p> </body> </html>

运行结果

以上就是css border-bottom-width属性如何使用的详细内容,更多内容请关注技术你好其它相关文章!

来源链接:
免责声明:
1.资讯内容不构成投资建议,投资者应独立决策并自行承担风险
2.本文版权归属原作所有,仅代表作者本人观点,不代表本站的观点或立场
上一篇:php获取远程图片并下载保存到本地的方法分析 下一篇:css text-decoration-color属性怎么用

相关资讯