这些是iframes
,奇怪的是当我检查它们时,我看到整个页面里面都有HTML。那是正常的?? !!当它们被加载时,页面滚动到底部“它们所在的位置”并且拒绝向上滚动直到它们完成加载。如何停止滚动到底部?
<iframe id="upload_target0" name="upload_target0" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target1" name="upload_target1" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target2" name="upload_target2" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target3" name="upload_target3" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target4" name="upload_target4" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target5" name="upload_target5" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
<iframe id="upload_target6" name="upload_target6" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe>
答案 0 :(得分:0)
#
解析为当前网址。指定空字符串,不指定任何内容,或about:blank
另外,不要重复width:0;height:0;border:0;
,而是在单独的CSS规则中使用display:none;
。
<iframe id="upload_target0" name="upload_target0" src="about:blank" class="upload_target"></iframe>
.upload_target {display:none;}