Check browser CSS property support with JavaScript?

前端 未结 4 436
暖寄归人
暖寄归人 2020-11-27 15:02

Is it possible in JavaScript to know if a CSS property is supported by the client browser? I\'m talking about the rotation properties of CSS3. I want to execute some functio

4条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 15:28

    May be try this?

    var temp = document.createElement('div');
    var isSupport = temp.style['propName'] != undefined;
    

提交回复
热议问题