比如说这样:function judge(){
if(screen.width<=1024){
document.getElementById('float').style.top="0px";
} else {
document.getElementById('float').style.bottom="0px";
}
}在IE6下面没效果,只有30分了,全部送
if(screen.width<=1024){
document.getElementById('float').style.top="0px";
} else {
document.getElementById('float').style.bottom="0px";
}
}在IE6下面没效果,只有30分了,全部送
overflow: visible;
position: fixed;
_position: absolute;
_top: expression(documentElement.scrollTop );
width:150px;
height:619px;
function judge(){
if(screen.width<=1024){
document.getElementById('float').getBoundingClientRect().top="0px";
} else {
document.getElementById('float').getBoundingClientRect().bottom="0px";
}
}以前getBoundingClientRect()是IE特有的,目前FF3+,opera9.5+,safari 4,都已经支持这个方法。
这个IE6支持?
_top: expression(documentElement.scrollTop );