微信公开课
微信公开课小程序热门讨论关于「组件scroll-view」的小程序开发问题
补充:组件scrollview
展开:使用scrollview,滑动一行无法滑动,需要鼠标点击上一行的区域滑动,下一行才能滑动比如说;要滑动“特色”这一行,鼠标只能在“类型这一行的范围里左右滑,”特色“这一行才能左右滑动js代码:<viewclass=itemwrap<viewclass=title{{title}}:<view<scrollviewclass=scrollerscrollx<repeatfor={{items}}key={{index}}<viewclass={{current==index?itemactive:item}}@tap=changeItem({{index}}){{item}}<view<repeat<scrollview<viewcss代码:itemwrap{display:flex;borderbottom:1pxsolidccc;whitespace:nowrap}title{width:160rpx;lineheight:40px}scroller{flex:1;lineheight:42px}item{display:inlineblock;padding:030rpx;}active{backgroundcolor:eee;color:orange}即速小程序:给个代码片段:肯定样式不对然后,你这是用了什么框架啊,语法跟我的有点不一样啊
更多有关「组件scroll-view」的讨论可以前往微信公开课小程序参与互动哦!了解更多