Rumah > Soal Jawab > teks badan
迷茫2017-04-17 15:19:27
p {
width: 0;
height: 0;
border: 10px solid #fff;
border-top-color: transparent;
}
巴扎黑2017-04-17 15:19:27
用border修饰实现三角形,想要透明用rgba
p{
width: 0;
height: 0;
border: 10px solid transparent;
border-top-color: rgba(0,0,0,0.4)
}
ringa_lee2017-04-17 15:19:27
同意小U酱的说法,我也只想到这一个办法:
——————————————华丽的分割线———————————————
用rotate做出来的效果:
天蓬老师2017-04-17 15:19:27
p::before {
content: "";
display: block;
position: absolute;
bottom: 0;
left: -10px;
width: 20px; /*自己调*/
border: 10px solid transparent;
border-bottom-color: white;
}
p::after {
content: "";
display: block;
position: absolute;
bottom: 0;
right: -10px;
width: 88px; /*自己调*/
border: 10px solid transparent;
border-bottom-color: white;
}