How do I get all supported CSS properties in WebKit?

前端 未结 2 926
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 00:07

In Firefox, Opera and IE I can get them via:

>> for (k in document.body.style) console.log(k)
-> opacity
   background
   height
   textAlign
   .
   ... long list         


        
2条回答
  •  天涯浪人
    2020-12-29 00:22

    I'm not sure about the Javascript access, but you may look up all supported properties (even the proprietaries) here: CSS property names.

提交回复
热议问题