收藏
回答

scroll-view标签撑开窗口宽度

<scroll-view scroll-x="true" style=" white-space: nowrap; display: flex" >

<!--  display: inline-block-->

  <view style="background: red; width: 200px; height: 100px; display: inline-block" ></view>

  <view style="background: green; width: 200px; height: 100px; display: inline-block"></view>

  <view style="background: blue; width: 200px; height: 100px; display: inline-block"></view>

  <view style="background: yellow; width: 200px; height: 100px; display: inline-block"></view>

</scroll-view>


回答关注问题邀请回答
收藏
登录 后发表内容