Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用「#&引用;iframe中的超链接导致iframe调整大小_Php_Html_Iframe - Fatal编程技术网

Php 使用「#&引用;iframe中的超链接导致iframe调整大小

Php 使用「#&引用;iframe中的超链接导致iframe调整大小,php,html,iframe,Php,Html,Iframe,我现在有以下设置,一个php require位于页面顶部,其中包含用户详细信息,而一个iframe位于页面下方,其中包含我当前正在处理的网站预览。如果我创建了一个临时超链接,只指向“#”,那么顶部的用户详细信息标题将消失,iframe将覆盖整个页面。但是,如果单击正常链接,则会发生这种情况 这是包含标题和iframe的页面: <? require '../userhead.php' ?> <!doctype html> <body style="z-index:10

我现在有以下设置,一个php require位于页面顶部,其中包含用户详细信息,而一个iframe位于页面下方,其中包含我当前正在处理的网站预览。如果我创建了一个临时超链接,只指向“#”,那么顶部的用户详细信息标题将消失,iframe将覆盖整个页面。但是,如果单击正常链接,则会发生这种情况

这是包含标题和iframe的页面:

<? require '../userhead.php' ?>
<!doctype html>
<body style="z-index:1000;width:100%; margin:0px;padding:0px;overflow:hidden;">
<br>
<iframe style="overflow:hidden;height:100%;width:100%;border:0px;z-index:-1;" src="/WestAncroft2"></iframe>


iframe页面中的链接如下所示:

 <li><a href="#">Supply</a></li>
  • 有什么想法吗? 非常感谢,, 汤米

    你试过:

    <? require '../userhead.php' ?>
    <!doctype html>
    <body style="z-index:1000;width:100%; margin:0px;padding:0px;overflow:hidden;">
    <br>
    <iframe name="iframe" style="overflow:hidden;height:100%;width:100%;border:0px;z-index:-1;" src="/WestAncroft2"></iframe>
    

    或者,如果您喜欢,可以为userhead使用iframe。我个人不喜欢iframe…

    请详细说明您的问题:)使用生成的html编写示例。如果可以的话,最好是小提琴。好的,我有一个包含php include的页面,还有一个iframe,iframe包含一个包含以下地址的页面,我已经更新了这个问题。@TecHunter页面在这里,请使用右边列出的用户名和密码
    <li><a href="#" target="iframe">Supply</a></li>
    
    $('#userhead').load('../userhead.php');