http://www.goodbaby.com/打开上面这个网站,待所页面全部打开后,一直在最底部的“我的菜单”这条面板是如何实现的。

解决方案 »

  1.   

      用层吧,一个层放的菜单栏,另一个就放了一个按纽。调用javascript函数实现层的控制
      个人意见,
      

  2.   

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>test</title>
    <script>
    window.onload = setDivPos;
    window.onscroll = setDivPos;
    window.onresize = setDivPos;
    function setDivPos(){
    var divObj = document.getElementById("div1");
    divObj.style.width = document.body.clientWidth;
    divObj.style.left = document.body.scrollLeft;
    divObj.style.top = document.body.scrollTop+document.body.clientHeight-divObj.offsetHeight;
    }
    </script>
    </head><body>
    <div style="height:1500px;width:1500px"></div>
    <div id="div1" style="position:absolute;height:20px;background-color:#cccccc">
    </div>
    </body></html>
      

  3.   

    为什么这个前加上这个就不发生作用了
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">