css 边框添加四个角的实现代码
作者:互联网
2026-04-04

1、html
<--other……………………-->
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; width: 19px; height: 19px; 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; }到此这篇关于css 边框添加四个角效果的文章就介绍到这了,更多相关css 边框添加四个角内容请搜索本站以前的文章或继续浏览下面的相关文章,希望大家以后多多支持本站!
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Python 操作 Word 文档节与页面设置
04/16
Python后端开发准则
04/16
Python 面向对象编程
04/16
第2周 Day 4:英语 Agent Web 版上线:从命令行到浏览器
04/16
python从入门到精通-第8章: 类型系统 — Python的类型注解革命
04/16
基于 SelectDB 实现 Hive 数据湖统一分析:洋钱罐全球一体化探索分析平台升级实践
04/16
使用 Python 压缩 PDF 文件的大小
04/16
Envira Gallery v1.13.2 汉化版 WordPress高级图库插件
04/16
观测云数据转发和存档最佳实践
04/16
Python 错误和异常处理
04/16
AI精选
