前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CSS边框倒角

CSS边框倒角

作者头像
十月梦想
发布2018-08-29 10:26:48
4.1K0
发布2018-08-29 10:26:48
举报
文章被收录于专栏:十月梦想十月梦想

边框倒角(边框圆角)属性

border-radius:值;

单独设置

border-top-left-radius:

border-top-right-radius:

border-bottom-left-radius:

border-bottom-right-radius:

代码语言:javascript
复制
#img1{border:1px solid orange;
border-top-left-radius:5px;
border-top-right-radius:5px;
border-bottom-left-radius:5px;
border-bottom-right-radius:5px;
}
div>img {width:200px;
height:200px;
border:1px dotted black;
border-radius:5%;}
</style>

边框倒角就是说将四周加上一定弧度,首先要进行选择器声明需要倒角的标记元素。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017-10-29,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档