overflow-y not working in safari inside a modal

后端 未结 10 1154
攒了一身酷
攒了一身酷 2020-12-29 03:04

Ok here is the html:

10条回答
  •  臣服心动
    2020-12-29 03:41

    Check Your Version of Safari Browser. And match with criteria given below :

    1. Available in Safari 3.0 and later.
    2. Available in iOS 1.0 and later.

    if you're against the conditions then get upto following measures:

    1. Apply ClearFix

      .clearfix:after {visibility: hidden;}

    Reason: Setting overflow doesn't clear the float at the element

    OR

    1. Set Position of element relative at root/body level like this :

      body { position:relative; overflow-x:hidden; }

    Note: Apply only one of them.

    Thanks & cheers

提交回复
热议问题