日期:2014-05-16  浏览次数:20287 次

javascript改变html元素位置
document.getElementById("right").style.right = "(windowWidth - 1050) / 2";

上面这条语句没用,为什么?怎么改才有用?
------解决方案--------------------
document.getElementById("right").style.right = (windowWidth - 1050) / 2 +'px';