摘要:
color:red; /* 所有浏览器都支持 */color:red !important;/* 除IE6外 */_color:red; /* IE6支持 */*color:red; /* IE6、IE7支持 */+color:red;/*IE7支持*/*+color:red; /* IE7支持 */color:red\9; /* IE6、IE7、IE8、IE9支持 */color:red\0; /* IE8、IE9支持 */color:red\9\0;/*IE9支持*//* webkit and opera */@media all and (min-width: 0px){ div{col 阅读全文
摘要:
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 (- 阅读全文