zoukankan      html  css  js  c++  java
  • 关于Div下拉菜单浮动在frameset上的解决方案。

    通过以下四个页面,可以实现。

    index.html
    ---------------------------------
    <html>
    <head>
    <title>this is my title</title>
    </head>

    <frameset rows="*" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
    <frame name="divframe" src="go.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" noresize scrolling="no">
    </frameset>

    <noframes>
    <body>
    sorry your browser doesn't accept frames
    </body>
    </noframes>
    </html>


    oldindex.html
    ---------------------------------
    <frameset rows="30,*" style="z-index:1">
    <frame src="topframe.html" style="z-index:1">
    <frameset cols="30,*" style="z-index:1">

    <frame src="topframe.html" style="z-index:1">
    <frame src="topframe.html" style="z-index:1">

    </frameset>
    <frame src="topframe.html" style="z-index:1">
    </frameset>


    topframe.html
    ---------------------------------
    <html>
    <head>
    </head>
    <body>

    <a onclick="top.divframe.document.getElementById('dude').style.display='block'">Go!</a>

    </body>
    </html>


    go.html
    ---------------------------------
    <html>
    <body>


    <div id='dude' class='' style="position:absolute;float:left;top=5;left=25;display='none';z-index:2;"><table bgcolor='009900'><tr><td>***<br><br>***this is my content...***<br><br>***</td></tr></table></div>

    <iframe src="oldindex.html" width=100% height=100% marginwidth=0>

    </body>
    </html>

  • 相关阅读:
    HDU 1385 Minimum Transport Cost
    TOJ 3488 Game Dice
    TOJ 1717 WOJ
    POJ 2553 The Bottom of a Graph
    TOJ 1836 Play on Words
    利用OpenCV建立视差图像
    分享一个PyTorch医学图像分割开源库
    WACV 2021 论文大盘点-图像分割篇
    SolidWorks动画教程(1):简单动画制作
    VS2013安装及破解教程
  • 原文地址:https://www.cnblogs.com/colder/p/1934677.html
Copyright © 2011-2022 走看看