最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
css边框添加四个角实现代码
时间:2022-06-25 13:46:54 编辑:袖梨 来源:一聚教程网
本篇文章小编给大家分享一下css边框添加四个角实现代码,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。
1、html
2、css
.loginbody{
border: 1px solid #21a7e1;
box-shadow: 5px 5px 10px 10px rgba(24,68,124,0.4);
padding-top:20px;
border-radius: 6px;
position: relative;
}
/*四个角框*/
.border_corner{
z-index: 2500;
position: absolute;
background: rgba(0,0,0,0);
border: 4px solid #1fa5f1;
}
.border_corner_left_top{
top: -2px;
left: -2px;
border-right: none;
border-bottom: none;
border-top-left-radius: 6px;
}
.border_corner_right_top{
top: -2px;
right: -2px;
border-left: none;
border-bottom: none;
border-top-right-radius: 6px;
}
.border_corner_left_bottom{
bottom: -2px;
left: -2px;
border-right: none;
border-top: none;
border-bottom-left-radius: 6px;
}
.border_corner_right_bottom{
bottom: -2px;
right: -2px;
border-left: none;
border-top: none;
border-bottom-right-radius: 6px;
}
相关文章
- 女神漫画免费在线阅读入口-女神漫画全集免费畅读 02-15
- 绝区零官方云游戏入口在哪-绝区零云游戏在线畅玩入口 02-15
- 智慧团建手机登录入口在哪进-网上共青团智慧团建官网入口 02-15
- 歪歪漫画秋蝉官方入口-秋蝉漫画免费下拉式阅读直达链接 02-15
- 歪漫科技无删减漫画最新版本下载-搜索到的不一定能看官方入口 02-15
- 企查查企业查询官网直达-企查查网页版一键查询 02-15
