谷歌hack
body:nth-of-type(1) .subbox{position:fixed; left:50%; top:100px; width:630px; height:593px; margin-left:-315px;z-index:9;}
谷歌需采用采用谷歌hack解决,在样式名前加body:nth-of-type(1);采用fixed定位
js:/*设置top值*/
t = document.body.scrollTop;
$(".subbox").css("top",(t+50)+"px");
@media screen and (-webkit-min-device-pixel-ratio:0){ .subbox{position:fixed; left:50%; top:100px; width:630px; height:593px; margin-left:-315px;z-index:9;}
}/*google webkit 内核*/