CSS overflow-x: visible; and overflow-y: hidden; causing scrollbar issue

后端 未结 6 978
孤街浪徒
孤街浪徒 2020-11-21 06:27

Suppose you have some style and the markup:

6条回答
  •  佛祖请我去吃肉
    2020-11-21 07:05

    There is now a new way of addressing this issue - if you remove position: relative from the container which needs to have the overflow-y visible, you can have overflow-y visible and overflow-x hidden, and vice versa (have overflow-x visible and overflow-y hidden, just make sure the container with the visible property is not relatively positioned).

    See this post from CSS Tricks for more details - it worked for me: https://css-tricks.com/popping-hidden-overflow/

提交回复
热议问题