ul>li::after,ul>li::before{ position: absolute }
ul>li::after{right:0px bottom:0px content:"" background:url() no-repeat}
ul>li::before{left:0px top:0px content:"" background:url() no-repeat} <ul>
<li>
曾经我以为我很完美,唯一的缺点是代码写太溜,直到有一天,一群女孩围着我说“你代码写得好溜啊!”,我说“写得溜有什么用,又没人采纳”,她们确骂我,说“你张这么帅,代码还写这么溜,哪个会不采纳你的!”
</li>
</ul>
<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title></title>
<style>
*{ padding:0margin:0font-size:14px }
body{
background: grey
}
.d{
position:fixedmargin:autoleft:0right:0bottom:24pxwidth: 160pxheight:120px
animation: d1 3s linear animation-fill-mode: both
}
@keyframes d1{
from{
bottom: 24px
}
to{
bottom: 360px
}
}
.d img{
height:120pxposition: absolutemargin:autoleft:0top:0animation: d2 2s 3s linear infinite animation-fill-mode: both
}
@keyframes d2{
0%,100%{
transform:rotate(0deg)
}
50%{
left: 40px
transform:rotate(90deg)
}
}
</style>
</head>
<body>
<div class="d">
<img src="http://aimusic.image.alimmdn.com/Image/6d235b11f15838d6711ec6b0ca5e1a32.png"/>
</div>
</body>
</html>