Javascript供应商前缀

时间:2016-09-01 06:50:15

标签: javascript vendor-prefix

我只想知道我写的Javascript代码是否有供应商前缀要求。下面是代码:

var imageZoom = {
     harvester: function(){
         var element = document.getElementById("image_container");
         element.onmouseover = imageZoom.zoomerFunction;
         element.onmouseout = imageZoom.zoomerRevert;
     },

     zoomerFunction: function(){
         var image = document.getElementById("picture");
         image.style.transform = "scale(1.5)";
     },

     zoomerRevert: function(){
         var image = document.getElementById("picture");
         image.style.transform = "scale(1.0)";                                                                                                                  
  }
};

image.style.transform是否有供应商前缀?他们会怎么样? 期待您的支持和提前感谢。

1 个答案:

答案 0 :(得分:0)

image.style.webkitTransform = "scale(1.5)"