我有一个固定的定位模式与灵活的布局在我的网站,其中用户可以键入内容。我已经在模式中加入了overscroll-behaviour-y: none,以防止底层页面滚动,并抑制文本内容滚动时的刷新。虽然它在chrome上工作得很好,但它不能在webview下工作,当用户输入大量数据并试图向上滚动时,会导致页面刷新。我尝试过将overscroll-behaviour属性包含到所有的父元素中,包括html和body,但是没有任何效果。我的方法有问题吗?
这是我的示例模式css
position: fixed;
z-index: 110;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: white;
overscroll-behavior-y: none;
z-index: 115;
display: flex;
overflow: hidden;
flex-direction: column;
justify-content: space-between;发布于 2018-11-01 01:21:25
根据:https://caniuse.com/#feat=css-overscroll-behavior
Safari仍然不支持这个道具供参考。
https://stackoverflow.com/questions/51745071
复制相似问题