Internet Explorer 8 shows gradient instead of background image

后端 未结 1 569
深忆病人
深忆病人 2020-12-07 19:13

I have a weird error. I\'m tiling a semi-transparent 1x1 pixel yellow PNG image in a DIV that overlays some text. With normal browsers, everything looks like it sho

相关标签:
1条回答
  • 2020-12-07 19:24

    Your .png image needs to have larger dimensions, at minimum 1x2 instead of 1x1.

    See: http://nemesisdesign.net/blog/coding/ie8-1x1px-semi-transparent-background-bug/

    Internet Explorer 8 doesn't perform the repeat of a 1x1 pixel semi-transparent background image correctly when any other element on the page is using the "-ms-filter" drective for the alpha transparency.

    0 讨论(0)
提交回复
热议问题