这次给大家带来用css3做出气球图片样式,用css3做出气球图片样式的注意事项有哪些,下面就是实战案例,一起来看一下。
气球效果图:

html:
css:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | .balloon{
width: 160px;
height: 160px;
background: #faf9f9;
border-radius: 50% 50% 25% 50%;
transform: rotate(45deg);
box-shadow: -8px -8px 80px -8px #873940 inset;
}
.balloon::after{
position: absolute;
bottom: 5px;
right: 5px;
content: "" ;
display: block;
border: 8px solid transparent;
border-right-color: #873940;
transform: rotate(45deg);
border-radius: 50%;
}
|
Salin selepas log masuk
相信看了本文案例你已经掌握了方法,更多精彩请关注php中文网其它相关文章!
推荐阅读:
伪元素::before与::after使用详解
css3的pointer-events使用详解
Atas ialah kandungan terperinci 用css3做出气球图片样式. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!