我想在php中用<iframe id="frm" name="frm"src="hhh.php"></iframe>
但是这个页面不会显示并且别的连接的页面也要显示在这个里面框架里
<a target="frm" href="hhh.php">Logistics</a>
但是连接也是没有用的页面也不会显示

解决方案 »

  1.   

    两种方法
    一、
    -------
    <?php
    xxxxxx-----php代码
    ?>
    <iframe id="frm" name="frm"src="hhh.php"></iframe>
    <?php
    xxxxxx-----php代码
    ?>
    --------------
    二、
    ---------
    <?php
    xxxxxx-----php代码
    echo ("<iframe id=\"frm\" name=\"frm\"src=\"hhh.php\"></iframe>");
    ?>
    -------------------
    其实还可以借助模板技术等
      

  2.   

    test.php:
    <?php
    echo "<a target='frm' href='hhh.php'>Logistics</a>";
    echo "<br>";
    echo "<iframe id='frm' name='frm'src='hhh.php'></iframe>";
    ?>
      

  3.   

    我想在php中用<iframe id="frm" name="frm"src="hhh.php"></iframe>
    但是这个页面不会显示<===========【哦,不显示啊。display:none】并且别的连接的页面也要显示在这个里面框架里<==========【咦,又要显示了?display:】
    <a target="frm" href="hhh.php">Logistics</a>
    但是连接也是没有用的页面也不会显示【有不要显示了?-。- display:none】=========================================你到底要干嘛啊 (︶︿︶)
      

  4.   

    <iframe width=0 height=0 ... />
      

  5.   

    你的要求好多……想想后,这个也是可以解决的。就死使用javascript解决……我要疯了,怎么都是javascript的问题?你不象显示的内容,可以使用javascript代码判定if (document.all.frm.href=="连接")//你要这笔的连接
    {
    document.all.frm.style.display=none;
    }
    else
    {
    document.all.frm.style.display="";
    }
      

  6.   

    iframe和php无关,这是页面表现层的东西.