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

后端 未结 4 548
时光说笑
时光说笑 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:48

    This may help those who are choosing to drop support for IE7.

    IE7 will always have a problem if the element is positioned (relative/absolute/fixed). In IE8+ the problem goes away if z-index is set to auto.

    If you are needing to support IE7, or if you are needing to stack things using z-index, you must settle for a second wrapping DIV.

    Content goes here

    Edit 2012-05-29: I have created an example to show how to fix this problem. I created the example to solve a z-index stacking issue... and it just so happened to fix this problem too (http://jsfiddle.net/ryanwheale/gz8v3/).

提交回复
热议问题