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

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

Suppose you have some style and the markup:

6条回答
  •  无人及你
    2020-11-21 07:13

    I used the content+wrapper approach ... but I did something different than mentioned so far: I made sure that my wrapper's boundaries did NOT line up with the content's boundaries in the direction that I wanted to be visible.

    Important NOTE: It was easy enough to get the content+wrapper, same-bounds approach to work on one browser or another depending on various css combinations of position, overflow-*, etc ... but I never could use that approach to get them all correct (Edge, Chrome, Safari, ...).

    But when I had something like:

      
    ... content with too-much horizontal content ...

    ... all browsers were happy.

提交回复
热议问题