Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1127654
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed last year.
Improve this questionI have a site here missnationglobal. Scrolling works fine on Chrome and other browsers except safari.
I checked the css markup for the site and don't seem to be able to figure out what is causing it, here's some code:
html {
height: 100% !important;
width:100%;
overflow-x: hidden !important;
overflow:scroll;
-webkit-overflow-scrolling: touch;
-webkit-overflow-y: auto; /* added css prefix for safari */
}
body {
height: auto;
min-height: 100%;
overflow: hidden;
position: relative;
margin:0;
}
Any help is appreciated!
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed last year.
Improve this questionI have a site here missnationglobal.com. Scrolling works fine on Chrome and other browsers except safari.
I checked the css markup for the site and don't seem to be able to figure out what is causing it, here's some code:
html {
height: 100% !important;
width:100%;
overflow-x: hidden !important;
overflow:scroll;
-webkit-overflow-scrolling: touch;
-webkit-overflow-y: auto; /* added css prefix for safari */
}
body {
height: auto;
min-height: 100%;
overflow: hidden;
position: relative;
margin:0;
}
Any help is appreciated!
Share Improve this question asked Nov 13, 2019 at 9:01 Pbalazs89Pbalazs89 1151 silver badge12 bronze badges 3- try with overflow-y: scroll; -webkit-overflow-scrolling: touch; – Chetan Vaghela Commented Nov 13, 2019 at 9:07
- Hi, tried it, unfortunately it does not work. – Pbalazs89 Commented Nov 13, 2019 at 9:12
- Well here's the thing, I inherited this wordpress site. I tried removing all the css in style.css, but even that doesn't fix it. I tried changing the theme, and disabling all plugins, but that did not help at all either. – Pbalazs89 Commented Nov 13, 2019 at 9:24
1 Answer
Reset to default 0I have been having this same issue. I believe this is more of a limitation of Safari than it is an issue of your creation. The only "tricks" I was able to find online are
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
I have added this to my container and child elements with no luck. I even added a pseudo element that was slightly bigger than the container hoping to trigger the scroll-bar on load, but this did not work either.
Lastly, I tried adding scroll-bar styles to the container hoping that would force it, but as you probably can guess: no dice.
I reached out directly to Safari technical support, and I hope to have an updated answer within the next couple of days. If anyone has come up with a working solution, please let me know!
本文标签: cssWebsite scroll not working on SAFARI
版权声明:本文标题:css - Website scroll not working on SAFARI 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736695600a1948161.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论