我才写了几行js,就让我碰到这么个奇葩的问题,也不是坑爹的IE啊
// it's not useful for safari but useful in firefox
// headImageElement.style = "position:relative;bottom:50px;background-color:red";
//it is useful in safari ,too lazy to try it in firefox
// headImageElement.style.backgroundColor = "red";
// headImageElement.style.position = "relative";
// headImageElement.style.bottom = "50";
at last , safari 上debug,挨个查相应的值,这个唯一评判的标准。
比如执行玩不管用的那句话之后,headImageElement.style.backgroundColor 的值还是老样子,headImageElement.style.position 也是空的,都是空的。