html - 如何生成 CSS3 形状
解决方案
您可以使用 css :after effect
<div class="shape"></div>
.shape {
width: 100px; height: 100px;
line-height: 100px;
background-color: #fc0;
display: inline-block;
margin-left: 50px;
position: relative;
z-index: 2;
text-decoration: none;}
.shape:after {
content: "";
width: 100px; height: 100px;
background-color: #fff;
position: absolute;
top: 0; right: -50px;
border-radius: 50%;
z-index: 3;}
推荐阅读
- c++ - C++ 类方法的部分特化
- ios - Capacitor iOS App 无法缩放到全高
- classification - knn.fit 返回 ValueError:使用序列设置数组元素
- r - R中的示例函数一遍又一遍地返回相同的值
- audio - Rust 中的 48Khz 立体声大端 PCM 到 16Khz 单声道大端 PCM 音频
- node.js - 在这个例子中如何计算并从数组中获取数据?
- mysql - 获取日期最早的不同行
- wpf - WPF XAML:将图像放在 TextBlock 附近,但将文本与行中心对齐
- terraform - 钥匙在哪里?
- angular - 角度绑定问题 - 段落不更新