scroll-view为什么在iphone上滚动有效,在nexus上就失效了呢?
发布于 5 年前 作者 jun46 2991 次浏览 来自 问答

<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>

在项目开发中,遇到一个水平滚动,然后发现苹果机器上能用,安卓上就用不了,然后拿了一段代码测试。

这么一段代码,然后我在iphone能运行,在nexus就不行了,求解释

1 回复

没有人回答吗

回到顶部