美文网首页
CSS 实现台阶效果

CSS 实现台阶效果

作者: 康乐芳华 | 来源:发表于2018-03-10 23:14 被阅读0次

HMTL

<p></p>

CSS

p{
    width: 0;
    transform: rotate(-90deg) translateY(200px);
}
p:before{
    color: transparent;
    content: 'x xx xxx xxxx xxxxx xxxxxx xxxxxxx xxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxx xxxxxx xxxxx xxxx xxx xx x';
    outline: 1px solid tomato;
}
image.png

codepen

相关文章

网友评论

      本文标题:CSS 实现台阶效果

      本文链接:https://www.haomeiwen.com/subject/bofifftx.html