定位 iFrame 内容
Positioning an iFrames content
我想使用 iFrame 显示以下页面: http://www.workbooks.com/training/courses
我只想显示页面内容,而不是顶部或左侧的 navigation/internal 广告。
我试过以下方法:
<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>
我想使用 iFrame 显示以下页面: http://www.workbooks.com/training/courses
我只想显示页面内容,而不是顶部或左侧的 navigation/internal 广告。
我试过以下方法:
<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>