How do I stop internet explorer's propriety gradient filter from cutting off content that should overflow?

后端 未结 4 546
时光说笑
时光说笑 2020-12-08 08:02

I\'m using the internet explorer gradient filter in my CSS.

It was all going well until I noticed that images that are supposed to extend beyond their containers

4条回答
  •  北海茫月
    2020-12-08 08:34

    This works, although it's extra markup.

    My content

    There is a bonus to this tactic, as you can add multiple gradient boxes and set their heights/widths as a % of the parent, thus emulating the "colour stop" behaviour allowed in safari/moz.

    For example:

    
    

提交回复
热议问题