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>
相关推荐
map_3d_vis4 分钟前
百度地图添加标注 Marker 和自定义图标(JSAPI 4.0)
前端·javascript·地图·百度地图
码云数智-园园12 分钟前
HTML5 FileReader 读取本地文件,前端上传预览原理
前端·html·html5
恋猫de小郭16 分钟前
Flutter Analyzer ,这玩意还有这么大的优化空间
android·前端·flutter
夕水25 分钟前
夕水文学网502 故障 —— 爬虫把 Node 堆内存吃爆
javascript·后端·node.js
honkun633 分钟前
vue 表格组件 vxe-table 行拖拽排序时,为“拖拽为子级”增加操作提示
前端·javascript·vue.js·vxe-table
qinqinzqq44 分钟前
CSS Grid 命名区域布局:组件 Header / Content / Sider 两栏布局实践
前端·css
总要学点什么1 小时前
第127篇:河道流场水面——把整条河的流向烤进一张贴图
开发语言·javascript·microsoft·材质·贴图·cesium
子非鱼a1 小时前
【WEB】[NewStarCTF 公开赛赛道]IncludeOne
前端·php
油丶酸萝卜别吃1 小时前
Vue2 实现全局主题切换功能:CSS Variables + Vuex
开发语言·前端·javascript
-梅1 小时前
Chrome 内存泄漏诊断指南:从现象定位到根因排查
前端·chrome