obj.style.z-index的正确写法

obj.style.z-index的正确写法

今天发现obj.style.z-index在js里面报错,后来才知道在js里应该把含“-”的字符写成驼峰式,例如obj.style.z-index的正确写法应该是obj.style.zIndex

posted @ 2016-05-18 23:37  pspgbhu  阅读(409)  评论(0)    收藏  举报