如图,可以左右滑动,页面布局用的rem,但是需要给出滑动的ul的宽width*length,之前width是用的px,我改成rem之后,qq浏览器没问题,uc上还会出问题,vue某个元素的宽怎么才能拿到。
你可以直接通过js原生来获取那个元素的值,document.getElementByClassName等等
document.getElementByClassName
2.1m questions
2.1m answers
60 comments
56.8k users