当前位置: 首页 > news >正文

css 实现四角边框样式

效果
效果如图
此图只实现 左下与右下边角样式
右上与左上同理

/*  容器 */
.card-mini {position: relative;
}
/*  左下*/
.card-mini::before {content: '';position: absolute;left: 0;bottom: 0;width: 20px;height: 20px;border-bottom: 2px solid #253d64;border-left: 2px solid #253d64;border-bottom-left-radius: 10px;
}
/*  右下*/
.card-mini::after {content: '';position: absolute;right: 0;bottom: 0;width: 20px;height: 20px;border-bottom: 2px solid #253d64;border-right: 2px solid #253d64;border-bottom-right-radius: 10px;
}

右上与左上 将上面的bottom改为top

.card-mini::before {content: '';position: absolute;left: 0;top: 0;width: 20px;height: 20px;border-top: 2px solid #253d64;border-left: 2px solid #253d64;border-top-left-radius: 10px;
}
.card-mini::after {content: '';position: absolute;right: 0;top: 0;width: 20px;height: 20px;border-top: 2px solid #253d64;border-right: 2px solid #253d64;border-top-right-radius: 10px;
}
http://www.lryc.cn/news/136315.html

相关文章:

  • 机器学习深度学习——自注意力和位置编码(数学推导+代码实现)
  • 02.案列项目Demo
  • PDF校对:追求文档的精准与完美
  • 低代码解放生产力,助力企业高效发展
  • 【前端从0开始】CSS——9、浮动
  • 如何在Moonriver网络上向社区代表委托投票权利
  • 时序预测 | MATLAB实现基于CNN-GRU卷积门控循环单元的时间序列预测-递归预测未来(多指标评价)
  • 【李群李代数】李群控制器(lie-group-controllers)介绍——控制 SO(3) 空间中的系统的比例控制器Demo...
  • DP读书:鲲鹏处理器 架构与编程(六)PCI Express 总线
  • Pyqt5-开源工具分解功能(文本拖拽)
  • Java版B/S架构 智慧工地源码,PC、移动、数据可视化智慧大屏端源码
  • 无涯教程-PHP - Session选项
  • The Age of Data and AI: Challenges and Opportunities
  • WPF 项目中 MVVM模式 的简单例子说明
  • 基于nginx禁用访问ip
  • 【第三阶段】kotlin语言的内置函数let
  • 【C++入门到精通】C++入门 —— 模版(template)
  • ARM汇编【3】:LOAD/STORE MULTIPLE PUSH AND POP
  • Python之Qt输出UI
  • 【1day】复现泛微OA某版本SQL注入漏洞
  • 安卓系列机型-禁止卸载某个APP 防止误卸载软件 无需root权限
  • 【算法系列篇】二分查找——这还是你所知道的二分查找算法吗?
  • 【前端从0开始】JavaSript——分支流程控制
  • Linux权限
  • PMP如何备考?学习方式这里有
  • 【Java转Go】快速上手学习笔记(四)之基础篇三
  • vue中form和table标签过长
  • java基础复习(第七日)
  • day24 | 理论基础、77. 组合
  • 数据结构(1)