用js设置一个元素的float样式
div.style.float = 'left';
这句话在谷歌浏览器或许没问题,但是在IE,火狐下会无效
正确写法是
div.style.styleFloat = 'left'; //ie
div.style.cssFloat = 'left'; //火狐