1 .shop{ 2 position: fixed; 3 top: 300px; 4 left: 40px; 5 } 6 .ball{ 7 position: fixed; 8 left: 32px; 9 bottom: 22px;10 z-index: 200;11 transition: all 0.4s cubic-bezier(0.49, -0.29, 0.75, 0.41); /*贝塞尔曲线*/12 }13 .inner{14 width: 16px;15 height: 16px;16 border-radius: 50%;17 background-color: rgb(0,160,220);18 transition: all 0.4s linear;19 }20 .cart{21 position: fixed;22 bottom: 22px;23 left: 32px;24 width: 30px;25 height: 30px;26 background-color: rgb(0,160,220);27 color: rgb(255,255,255);28 }
123
9- 4 { {item.text}} 5 { {item.price}} 6 7
8{ {count}}101119121813 1714 1516
1
transtion属性可以查看官方文档,具体位置可以通过调试获得。