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>
相关推荐
余人于RenYu4 小时前
Claude + Figma MCP
前端·ui·ai·figma
杨艺韬7 小时前
vite内核解析-第2章 架构总览
前端·vite
我是伪码农8 小时前
外卖餐具智能推荐
linux·服务器·前端
2401_885885048 小时前
营销推广短信接口集成:结合营销策略实现的API接口动态变量填充方案
前端·python
小李子呢02118 小时前
前端八股性能优化(2)---回流(重排)和重绘
前端·javascript
程序员buddha9 小时前
深入理解ES6 Promise
前端·ecmascript·es6
吴声子夜歌9 小时前
ES6——Module详解
前端·ecmascript·es6
剪刀石头布啊9 小时前
原生form发起表单干了啥
前端
剪刀石头布啊9 小时前
表单校验场景,如何实现页面滚动到报错位置
前端
gyx_这个杀手不太冷静9 小时前
大人工智能时代下前端界面全新开发模式的思考(二)
前端·架构·ai编程