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>
相关推荐
京东云开发者10 分钟前
正式上线!京东云AI智能渗透测试服务
前端
zzzzzz31014 分钟前
当甲方说'logo放大的同时再缩小一点'时,我用 AI 把这个需求做出来了
javascript·css·程序员
AprChell14 分钟前
低代码设计器和低代码设计引擎架构综述
前端·vue.js·低代码
Hilaku19 分钟前
Node.js 还能再战十年?给你一个不换引擎的理由
前端·javascript·程序员
颜进强28 分钟前
AI性能参数-截断、延迟与流式输出
前端·后端·ai编程
spmcor35 分钟前
React 架构师之路:Next.js 全栈革命(第八篇)
前端·react.js
英勇无比的消炎药35 分钟前
TinyRobot 源码深度分析:OpenTiny 的 AI 对话组件库
前端·vue.js·github
假如让我当三天老蒯37 分钟前
React基础、进阶(学习用)
前端·react.js·面试
风骏时光牛马39 分钟前
HTML十大经典实战代码案例合集
前端
weedsfly40 分钟前
前端必知必会:从 IIFE 到 ESM,模块化到底在解决什么?
前端·javascript