zoukankan      html  css  js  c++  java
  • 【html】点击链接让页面在 iframe 中变换

     

    Demo:

    <html><body> 


    <a href= "1.html " target= "iFrameName "> page1 </a> <br/> 
    <a href= "2.html " target= "iFrameName "> page2 </a> <br/> 
    <a href= "3.html " target= "iFrameName "> page3 </a> <br/> 
    <a href= "4.html " target= "iFrameName  "> page4 </a> <br/> 


    <div id= "iFrame1 " style= "position:absolute; left:220px; top:200px; z-index:18 "> 
    <iframe name= "iFrameName " width=542 height=615 src= "1.html " scrolling= "auto " frameborder= "0 "> </iframe> 
    </div> 

    </body> </html>

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

  • 相关阅读:
    luogu 2962 [USACO09NOV]灯Lights
    bzoj 1923
    bzoj 1013
    bzoj 3513
    bzoj 4259
    bzoj 4503
    CF 632E
    bzoj 3527
    bzoj 3160
    bzoj 2179
  • 原文地址:https://www.cnblogs.com/smilexumu/p/7439890.html
Copyright © 2011-2022 走看看