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>
相关推荐
神秘的猪头21 小时前
Ajax 数据请求:从零开始掌握异步通信
前端·javascript
黛色正浓21 小时前
leetCode-热题100-贪心合集(JavaScript)
javascript·算法·leetcode
稀饭5221 小时前
用changeset来管理你的npm包版本
前端·npm
TeamDev21 小时前
基于 Angular UI 的 C# 桌面应用
前端·后端·angular.js
卡尔特斯21 小时前
CSS 特殊符号 / 英文导致换行问题速查表
css
Komorebi゛21 小时前
【CSS】斜角流光样式
前端·css
Irene199121 小时前
CSS 废弃属性分类总结
前端·css
青莲8431 天前
Android 事件分发机制 - 事件流向详解
android·前端·面试
musashi1 天前
用 Electron 写了一个 macOS 版本的 wallpaper(附源码、下载地址)
前端·vue.js·electron
满天星辰1 天前
Typescript之类型总结大全
前端·typescript