Is it possible to check for PNG support with jQuery.Support?

前端 未结 5 1318
抹茶落季
抹茶落季 2021-01-15 04:59

My question is regarding the jQuery Support system.

I\'d like to know if it is possible to tell whether or not the browser will support semi-transparent background P

5条回答
  •  忘掉有多难
    2021-01-15 05:03

    I think that is simply not possible, after all, even IE6 shows the transparent png's, it just does not show the transparency; all browsers "support" png's so you can´t check for that.

    If you could get the color of a specific pixel on a page, you could of course, but it seems that is impossible to do.

    See also Javascript - get pixel data from image under canvas element?

提交回复
热议问题