此页面 < a href=> "http://pagelinks.mxhoste.com/readings_page.php" rel="nofollow" >http://pagelinks.mxhoste.com/readings_page.php 如果您在浏览器中键入地址, 则该页面将独立装载。 但如果我以 .load ()
装入另一页的 iframe, 它会挂挂 :
这里是""http://pagelinks.mxhoste.com/readings.php" rel="nofollow">http://pagelinks.mxhoste.com/readings.php ,我有一个装入页面的框架。
<iframe src="readings_page.php" scrolling="no" style="position: relative; top:-25px; width:97.5%; height:95.2%; border:10px solid #404040; overflow:hidden;"></iframe>
<script>
document.title = "PageLinks | Daily Readings";
$("#menu ul li").removeClass("active");
$("#menu ul li:eq(1)").addClass("active");
show_alerts();
</script>
该代码本身也自动在浏览器中加载该代码。它只有当我在单击一个按钮时将文件装入另一个页面元素时挂挂
$(#page).load( readings.php );
这是用于此元素的 html :
<div id="page">
</div>
<style>
#page {
font-family:"Arial", Helvetica, sans-serif;
font-size:0.8em;
width: 778px;
height: 435px;
padding-top: 0px;
padding-left: 0px;
padding-right: 0px;
background-color: #404040;
margin: 0 auto;
position: relative;
top: 30px;
}
</style>
是否有另一种方式可以装载读数. php 来解决这个问题? 换句话说, 将页面读数_ page. php 装入我主页上的 div 中的最佳方式是什么 。 我用 Irame 挂挂挂的方法 。