css实现纯加号

bash 复制代码
<!DOCTYPE html>  
<html>  
<head>  
<style>  
.circle-plus {  
  position: relative;  
  width: 50px;  
  height: 50px;  
  border-radius: 50%;  
  background-color: #3498db;  
  display: flex;  
  align-items: center;  
  justify-content: center;  
}  
  
.circle-plus::before, .circle-plus::after {  
  content: '';  
  position: absolute;  
  background-color: #fff;  
}  
  
.circle-plus::before {  
  width: 2px;  
  height: 20px;  
  top: 15px;  
  left: 24px;  
}  
  
.circle-plus::after {  
  width: 20px;  
  height: 2px;  
  top: 24px;  
  left: 15px;  
}  
</style>  
</head>  
<body>  
  
<div class="circle-plus"></div>  
  
</body>  
</html>
相关推荐
云飞云共享云桌面2 小时前
传统工作站 vs 云飞云共享云桌面:制造业设计云桌面选型深度对比
运维·服务器·前端·网络·3d·架构·制造
UXbot2 小时前
如何选择适合公司项目的UI设计工具?企业选型指南
前端·低代码·ui·团队开发·原型模式·设计规范·web app
llz_1123 小时前
web-第四次课后作业
前端·spring boot·web
武清伯MVP4 小时前
前端跨域方案大合集
前端·javascript
小刘|4 小时前
Spring AI Alibaba 集成和风天气 API 实战
java·服务器·前端
星星在线4 小时前
我是怎么把页面图片流量砍掉一半的
前端·javascript
木叶子---5 小时前
前端打包出错
前端·人工智能·tensorflow
JAVA面经实录9175 小时前
前端系统化学习计划表(含完整知识思维导图)
前端·学习
本末倒置1836 小时前
开发了一个所见所得的md编辑器,致敬Typora大佬
前端
kyriewen6 小时前
TypeScript 高级类型:我用 infer 写了一个类型安全的 EventBus,终于搞懂了泛型约束
前端·javascript·typescript