<view class='section1'>
<view class='section__title1'>新闻频道横向滚动</view>
<scroll-view scroll-x="true" style="width: 100%;" >
<view style='display:flex;flex-direction:row'>
<view style='margin-right:10px;'>推荐</view>
<view style='margin-right:10px;'>推荐2</view>
<view style='margin-right:10px;'>推荐3</view>
<view style='margin-right:10px;'>推荐4</view>
<view style='margin-right:10px;'>推荐5</view>
<view style='margin-right:10px;'>推荐6</view>
<view style='margin-right:10px;'>推荐7</view>
<view style='margin-right:10px;'>推荐8</view>
<view style='margin-right:10px;'>图片</view>
<view style='margin-right:10px;'>科技</view>
<view style='margin-right:10px;'>汽车</view>
<view style='margin-right:10px;'>推荐</view>
<view style='margin-right:10px;'>推荐</view>
<view style='margin-right:10px;'>推荐</view>
<view style='margin-right:10px;'>推荐</view>
<view style='margin-right:10px;'>推荐</view>
</view>
</scroll-view>
</view>
display:inline-block
。。。
还是没用啊
你这个是官方的代码片段吗?点右上角的分享把现在这个代码片段发出来呢
可以了,刚刚代码有个字母少了,谢了哈!
不对啊。。我把你scroll-view这一段拷贝到我工程里,可以滚啊。。你来个代码片段呢。。