筆記:使用jquery的 offset函數時 在ie6 中出現異常
解決方法:為使用offset的對象的top,left設上值.(另外需要注意的是offset()只對可見元素生效)
例如:
<div id='test'style="position:absolute;top:0px;left:0px;width:100px; height:100px;" >
test
</div>
$('#test').offset({'top':100,'left':100});
解決方法:為使用offset的對象的top,left設上值.(另外需要注意的是offset()只對可見元素生效)
例如:
<div id='test'style="position:absolute;top:0px;left:0px;width:100px; height:100px;" >
test
</div>
$('#test').offset({'top':100,'left':100});