在safari上,有时会出现例如
document.getElementById('id').style = "display: none";
这种写法有时会不生效,所以大家最好改为这种写法:
document.getElementById('id').style.display = "none";
关于一些特殊的属性只需改为camel命名法就好了:font-size fontSize
document.getElementById('id').style = "display: none";
这种写法有时会不生效,所以大家最好改为这种写法:
document.getElementById('id').style.display = "none";
关于一些特殊的属性只需改为camel命名法就好了:font-size fontSize