zoukankan      html  css  js  c++  java
  • div显示在底部(一种固定不变,另一种随页面上下翻动而动) 枫

    <html>
    <head>
        <style type="text/css">
            html, body, #wrap{ height: 100%; 100%;padding:0px; margin:0px;}
            #main{padding-bottom: 0px;}
            /* 必须使用和footer相同的高度 */
            #footer
            {
                left:0px;
                right:0px;
                position: relative;
                margin-top: -0px; /* footer高度的负值 */
                height: 150px;
                background: #ddd;
                clear: both;
                padding:0px;
            }
            .clearfix:after
            {
                content: ".";
                display: block;
                height: 0;
                clear: both;
                visibility: hidden;
            }
            .clearfix
            {
                display: inline-block;
            }
            /* Hides from IE-mac \*/
            * html .clearfix
            {
                height: 1%;
            }
            .clearfix
            {
                display: block;
            }
        </style>
    </head>
    <body>
        <div id="wrap">
            <div id="main" class="clearfix">
                <div id="content">
                    ccc
                </div>
                <div id="side">
                    sss
                </div>
            </div>
        </div>
        <div id="footer">
            fff
        </div>
        asdfasdfasdf
        <div style="position:fixed;bottom:0px;right:0px; background-color:Red; 100%;">
        HHHHHHHHHHHHHH
        </div>
        asdfasdfasd
    </body>
    </html>

  • 相关阅读:
    Ryzom简易汉化教程
    在Windows上编译运行Ryzom客户端
    在Windows(x86)上编译、配置并运行Ryzom Core(服务器/客户端)
    引擎设计与商业模式
    总结了一下新手学习Windows 8 Metro App 开发的捷径
    开始研究Ryzom Core!
    和Ryzom相关的项目简介
    关于Ryzom游戏开发的路线图
    根据 yyyymmdd格式日期取得当前日期所在周的开始和结束日期
    asp数组中REDIM的用法(动态数组)
  • 原文地址:https://www.cnblogs.com/mrray/p/2241563.html
Copyright © 2011-2022 走看看