【发布时间】:2020-01-13 03:36:18
【问题描述】:
我正在尝试创建一个类似于图像 https://i.imgur.com/8p8L5NV.jpg 的蜂巢。这就是我所做的。但形状并不完全像图像。你怎么看?
.circle {
background: #000;
border-radius: 10px;
height: 50px;
width: 150px;
transition: all .3s ease-in-out;
}
.circle:hover {
border-radius: 0;
cursor: pointer;
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
width: 80px;
margin-left: 35px
}
.text {
color: #fff;
text-align: center;
padding-top: 15px;
transition: all .3s ease-in-out;
}
<div class="circle">
<div class="text">HELLO</div>
</div>
【问题讨论】: