温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

css中border-bottom-style属性如何使用

发布时间:2020-09-23 14:41:31 来源:亿速云 阅读:161 作者:小新 栏目:web开发

这篇文章主要介绍css中border-bottom-style属性如何使用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

css border-bottom-style属性用于设置元素底部边框样式,只有当属性值不是 none 时边框才可能出现。

css border-bottom-style属性怎么用?

border-bottom-style属性设置元素下边框的样式。

可以设置的属性值:

● none:指定无边框

● hidden:与"none" 相同。不过应用于表时除外,对于表,hidden 用于解决边框冲突。

● dotted:指定点状边框。

● dashed:指定虚线边框。

● solid:指定实线边框。

● double:指定一个双边框。

● groove:定义双线。双线的宽度等于 border-width 的值。

● ridge:定义三维菱形边框。其效果取决于 border-color 的值。

● inset:定义三维凹边框。其效果取决于 border-color 的值。

● outset:定义三维凸边框。其效果取决于 border-color 的值。

● inherit:指定应该从父元素继承边框样式。

说明:只有当属性值不是 none 时边框才可能出现。在 CSS1 中,HTML 用户代理只需支持 solid 和 none。

注释:任何的版本的 Internet Explorer (包括 IE8)都不支持属性值 "inherit" 或 "hidden"。

css border-bottom-style属性 示例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<style>
p.none {border-bottom-style:none;}
p.dotted {border-bottom-style:dotted;}
p.dashed {border-bottom-style:dashed;}
p.solid {border-bottom-style:solid;}
p.double {border-bottom-style:double;}
p.groove {border-bottom-style:groove;}
p.ridge {border-bottom-style:ridge;}
p.inset {border-bottom-style:inset;}
p.outset {border-bottom-style:outset;}
</style>
</head>
<body>
<p class="none">无下边框</p>
<p class="dotted">点下边框</p>
<p class="dashed">虚线下边框</p>
<p class="solid">实线下边框</p>
<p class="double">双线下边框</p>
<p class="groove">凹槽下边框</p>
<p class="ridge">垄状下边框</p>
<p class="inset">嵌入下边框</p>
<p class="outset">外凸下边框</p>
</body>
</html>

效果图:

css中border-bottom-style属性如何使用

以上是css中border-bottom-style属性如何使用的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI