Reliably detecting

后端 未结 5 1873
面向向阳花
面向向阳花 2020-12-16 17:35

I\'m currently doing some redesign of a website, basically just upgrading it to a more up-to-date look and trying to make it as resolution independent as possible, and in th

5条回答
  •  一整个雨季
    2020-12-16 17:56

    A good discussion/comparison of methods is here: http://www.voormedia.nl/blog/2012/10/displaying-and-detecting-support-for-svg-images

    Based on that page, I wound up using this:

    svgsupport = document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1")
    

提交回复
热议问题