也要兼容这句话
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
我的网页上必须有这句话谢谢!!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
我的网页上必须有这句话谢谢!!!
你看这个帖子的左右两侧, 查看一下源码, 或用firebug把它的position改成fixed, 效果就出来了.
if ($.browser.msie && $.browser.version == "6.0") {
scrollie6()
$(window).bind("scroll", function () {
scrollie6()
});
function scrollie6(){
$("输入ID").css({ marginTop: document.documentElement.scrollTop + "px" });
}
}ie6只能用js来实现
.text{ width:48px; height:48px; position:fixed; _position:absolute; top:30px; left:30px; z-index:999; background:#09c; cursor:pointer}