We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题场景:微信 iOS 客户端 webview 下 H5 页面横向滚动条不隐藏
::webkit-scrollbar { display: none; }
微信 webview 内核由 UIWebView 升级到新内核 WKWebView 后,就不生效了
问题分析:只要添加了 -webkit-overflow-scrolling: touch 平滑滚动属性,隐藏滚动条样式就会失效。
把滚动条撑开,然后通过负值的外边距抵消撑开的部分,使得外容器高度不受影响,从而大道滚动条溢出隐藏
<div class="slider"> <ul></ul> </div>
.slider { overflow: hidden; } .slider ul { padding-bottom: 10px; margin-bottom: -10px; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题场景:微信 iOS 客户端 webview 下 H5 页面横向滚动条不隐藏
以往的做法
但是
微信 webview 内核由 UIWebView 升级到新内核 WKWebView 后,就不生效了
新的思路
把滚动条撑开,然后通过负值的外边距抵消撑开的部分,使得外容器高度不受影响,从而大道滚动条溢出隐藏
The text was updated successfully, but these errors were encountered: