Javascript Iframe滚动条未移动
我已经创建了一个具有以下属性的IframeJavascript Iframe滚动条未移动,javascript,jquery,iframe,scrollbar,mousewheel,Javascript,Jquery,Iframe,Scrollbar,Mousewheel,我已经创建了一个具有以下属性的Iframe <iframe id='modalIframeId' width='100%' height='100%' name='modalIframeId' marginWidth='0' marginHeight='0' frameBorder='0' scrolling='auto' scrolling='yes' title='Dialog Title'> 当我用鼠标滚轮从上到下滚动时,内容进展顺利。但滚动条没有相应地移动。这与
<iframe id='modalIframeId' width='100%' height='100%' name='modalIframeId' marginWidth='0' marginHeight='0' frameBorder='0' scrolling='auto' scrolling='yes' title='Dialog Title'>
当我用鼠标滚轮从上到下滚动时,内容进展顺利。但滚动条没有相应地移动。这与IE8和firefox的情况相同。我如何解决这个问题?我可以看到,在你100%的宽度和高度之后,你想让整个页面成为一个iframe 你可以改进你的
和
,但是使用ajax或php总是最好的
<frameset cols="100%">
<frame src="document.html">
</frameset>
<?php include 'document.html'; ?>
<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script>
$.get("document.html", function(data){
document.write(data)
});
</script>
$.get(“document.html”,函数(数据){
文件写入(数据)
});
我可以看到,在你100%的宽度和高度之后,你想让整个页面成为一个iframe
你可以改进你的
和
,但是使用ajax或php总是最好的
<frameset cols="100%">
<frame src="document.html">
</frameset>
<?php include 'document.html'; ?>
<script src="http://code.jquery.com/jquery.min.js" type="text/javascript"></script>
<script>
$.get("document.html", function(data){
document.write(data)
});
</script>
$.get(“document.html”,函数(数据){
文件写入(数据)
});