zoukankan      html  css  js  c++  java
  • 点击链接让页面在iFrame切换里显示

    <html> 
    <body> 
    <a href= "1.html " target= "iFrame1 "> page1 </a> <br/> 
    <a href= "2.html " target= "iFrame1 "> page2 </a> <br/> 
    <a href= "3.html " target= "iFrame1 "> page3 </a> <br/> 
    <a href= "4.html " target= "iFrame1 "> page4 </a> <br/> 
    <div id= "iFrame1 " style= "position:absolute; left:220px; top:200px; z-index:18 "> 
    <iframe name= "iFrame1 " width=542 height=615 src= "1.html " scrolling= "auto " frameborder= "0 "> </iframe> 
    </div> 


    </div> </body> 
    </html>

    主要是在iframe里定义name=XXX ,然后在href里用 target调target=XXX 。

  • 相关阅读:
    pinyin4j使用示例
    迭代器模式
    适配器模式
    策略模式
    装饰模式
    责任链模式
    命令模式
    中介者模式
    原型模式
    代理模式
  • 原文地址:https://www.cnblogs.com/hpuCode/p/2716172.html
Copyright © 2011-2022 走看看