温馨提示×

温馨提示×

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

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

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

发布时间:2021-07-26 13:46:19 来源:亿速云 阅读:150 作者:Leah 栏目:开发技术

本篇文章为大家展示了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属性,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

向AI问一下细节

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

css
AI