document.getElementById("left").style.height=document.getElementById("right").offsetHeight+"px";为什么获取的高度不准确?left的高度有时会小于right的高度?
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/29 23:07:52
![document.getElementById(](/uploads/image/z/11025243-27-3.jpg?t=document.getElementById%28%22left%22%29.style.height%3Ddocument.getElementById%28%22right%22%29.offsetHeight%2B%22px%22%3B%E4%B8%BA%E4%BB%80%E4%B9%88%E8%8E%B7%E5%8F%96%E7%9A%84%E9%AB%98%E5%BA%A6%E4%B8%8D%E5%87%86%E7%A1%AE%3Fleft%E7%9A%84%E9%AB%98%E5%BA%A6%E6%9C%89%E6%97%B6%E4%BC%9A%E5%B0%8F%E4%BA%8Eright%E7%9A%84%E9%AB%98%E5%BA%A6%3F)
document.getElementById("left").style.height=document.getElementById("right").offsetHeight+"px";为什么获取的高度不准确?left的高度有时会小于right的高度?
document.getElementById("left").style.height=document.getElementById("right").offsetHeight+"px";
为什么获取的高度不准确?left的高度有时会小于right的高度?
document.getElementById("left").style.height=document.getElementById("right").offsetHeight+"px";为什么获取的高度不准确?left的高度有时会小于right的高度?
这个问题一般常见于IE6中,IE6中对高度的解释有bug,这个网上探讨了很多,所以你可以判断一下是否为IE6,如果是IE6的话,高度要设置的小些,否则偏大
document
document.layers document.
document.getElementById()
document of
Document Viewer
document是什么意思
document是什么意思
document是什么意思
attached document
麻烦告诉我这段话是做什么用的?document.write('');document.write('');document.write('');document.write('');document.write('');
document.write(x + ); document.write(y + ); document.write(z + );
document.myForm.reset();是什么意思?document.myForm.reset();
$(document).ready(function() { funAddDialogEvent();
document.layers document.我看好多javascript 中提到了 document.layers document.all
Document against Payment
JS中 document 意思
document.write()是什么意思?
javascript中的with(document){}