注:请在移动端查看效果,PC端无法拖拽
加载jQuery库,引入in01.js文件,
1 2 3 4 5 6 7 8 9 10 11 | < div class = "main" value = "-1" > < ul data-initial = 'true' > < li >< span class = "num" >140</ span ></ li > < li >< span class = "num" >150</ span ></ li > < li >< span class = "num" >160</ span ></ li > < li >< span class = "num" >170</ span ></ li > < li >< span class = "num" >180</ span ></ li > < li >< span class = "num" >190</ span ></ li > < li >< span class = "num" >200</ span ></ li > </ ul > </ div > |
请问宽度可以做到自适应吗,我宽度自适应后,标尺位置偏移了
体重越往后滑动越卡 到80后基本不动啊!
效果挺不错,手机端比较流畅