CSS片段

前端技术飞快发展为了提升性能和展示效果越来越多的交互、效果都可以用CSS完成了

1
2
3
4
5
6
7
8
9
10
11
12
.bg_primary {
background: #ffe12c;
display: block;
width: 202px;
height: 44px;
margin: 30px auto 0;
text-align: center;
line-height: 44px;
box-shadow: 0 4px 10px 0 rgba(255,223,31,.3);
border-radius: 27px;
color: #333
}

效果如下图所示
前端纯CSS写出按钮模糊阴影