Table cell loses border when css gradient filter is applied in IE8

前端 未结 7 726
借酒劲吻你
借酒劲吻你 2020-12-15 03:55

I found the css border on the table cell is lost when applying css gradient filter at the same time. It seems that the gradient effect overrides the border.

Is it a

7条回答
  •  感动是毒
    2020-12-15 04:21

    I've found a fix but you may not like it...

    If you render in IE in quirks mode the border renders fine, it is only obscured if you're using compatibility mode. Compare these two pages in IE8:

    • With a DOCTYPE declaration


      • (source: boogdesign.com)
    • Without a DOCTYPE declaration


      • (source: boogdesign.com)

    What also works is clicking the compatibility view button, but my attempts to get the same results with the compatibility mode meta tags were unsuccessful. I tried using box-sizing, but also with no success. I conclude the only way to get it to work as you want is to force IE into quirks mode, but that may create so many other issues for layout that you may be better off just adding a wrapper element to attach your gradient background to.

提交回复
热议问题