obj.style设置z-index的方法一开始写成了:obj.style.z-index1000结果报错。。。。。Google后才知道,原来要把
obj.style设置z-index的方法
一开始写成了:
obj.style.z-index="1000"
结果报错。。。。。
Google后才知道,原来要把“-”省略掉,然后第二个单词的首字母大写:
obj.style.zIndex="1000"
obj.style设置z-index的方法
一开始写成了:
obj.style.z-index="1000"
obj.style.zIndex="1000"