用css画出一个圆圈,里面有个叉号(不能用英文字母x)
#cyc {width: 150px;height: 150px;margin: 100px auto;border-radius: 50%;border: 5px solid #000000;position: relative;}#cyc::before {content: "";display: block;width: 100px;height: 20px;background: #000;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%) rotate(45deg);}#cyc::after {content: "";display: block;width: 100px;height: 20px;background: #000;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%) rotate(-45deg);}
个人简介
我是歌谣,欢迎和大家一起交流前后端知识。放弃很容易,
但坚持一定很酷。欢迎大家一起讨论
主目录
与歌谣一起通关前端面试题