Access the -webkit- vendor prefix in JavaScript

后端 未结 3 1368
独厮守ぢ
独厮守ぢ 2020-12-16 02:39

If I were writing a JavaScript line to set a style attribute of an element it could look like this (this example: \"width\"):

document.getElementById(\'myDiv         


        
3条回答
  •  孤城傲影
    2020-12-16 02:52

    One possibility would to use for example jquery, to make it easy. If you want a pure javascript solution, then read this: http://www.javascriptkit.com/javatutors/setcss3properties.shtml

提交回复
热议问题