Overflow-x:hidden; on mobile device not working

后端 未结 6 1899
广开言路
广开言路 2021-01-02 00:31

I hope you guys can help me cause I cant seem to wrap my head arroud this. I build a one-page site which works fine, except for one thing, which is the overflow-x:hidden on

6条回答
  •  梦谈多话
    2021-01-02 01:25

    I had this same problem and tried applying body with overflow-x: hidden;, and lots of other answers, but what did work in my Wordpress, was applying a global CSS rule as below.

    body,html {
    overflow-x: hidden;
    }
    

    This eliminates the movement left to right on mobiles. The HTML part is needed, not just body!

提交回复
热议问题