Html 定位iFrames内容
我想使用iFrame显示以下页面: 我只想显示页面内容,而不是顶部或左侧导航/内部广告 我尝试了以下方法:Html 定位iFrames内容,html,css,iframe,Html,Css,Iframe,我想使用iFrame显示以下页面: 我只想显示页面内容,而不是顶部或左侧导航/内部广告 我尝试了以下方法: <iframe scrolling="no" frameborder="0" src="http://www.workbooks.com/training/courses" allowtransparency="true" style="height:100%;width:75%;"> </iframe> 它没有显示75%的内容宽度,而是减少了iFrame的总宽度
<iframe scrolling="no" frameborder="0" src="http://www.workbooks.com/training/courses" allowtransparency="true" style="height:100%;width:75%;">
</iframe>
它没有显示75%的内容宽度,而是减少了iFrame的总宽度
请告知。iframe不适合此任务,您可以尝试jquery
<div id = "showContent"></div>
<button id = "btn" onclick="showit()">Show info from another page.</button>
<script>
$(document).ready(function(){
$("#btn").click(function(){
$('#showContent').load('http://mywebs.com');
});
});
</script>
谢谢Mohit,不幸的是,我目前对Javascript或Jquery一无所知。当我尝试您的解决方案时,它只是将该行显示为。我怎样才能让页面阅读它呢?顺便说一下,我的想法是创建一个div,即使用我想要显示的内容的id showContent,加载将只显示这个div?谢谢。遇到此问题,因此将作为JQuery问题重新提出。@StackOver请告诉我问题所在