一个普通的页面,内容如下,安卓的正常,不会滚动,iOS的都会滚动
// wxss
page {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
overflow-y:hidden;
overflow-x:hidden;
}
.block {
background-color: whitesmoke;
margin: 5px 10px 5px 10px;
border-radius: 10px;
padding: 0px 5px 0 5px;
box-sizing: border-box;
width: 90%;
}
// wxml
<view class="block">
<t-cell title="发送参考图片" bordered="{{false}}" style="background-color: whitesmoke;">
<t-switch bindchange="handleRetrImageChange" value="{{retrImage}}" icon="{{['check', 'close']}}" slot="note" style="--td-switch-checked-color: #7252BC"/>
</t-cell>
</view>
<button id="logout_btn" bind:tap="logout">退出登录</button>
disableScroll 禁用掉页面的上下滚动