阅读背景:

CSS将div高度扩展到页面顶部

来源:互联网 

I have the code as follows:

我的代码如下:

<html>
    <head>
        <style type="text/css">
            #container {
            }
            #content {
            }
            a {
                color:#0083cc;
            }
            body {
                margin:0px; padding:0px;
            }
            #header {
                height:20px;
                background-color:#fb0000;
            }
            #section1 {
                margin: 0 auto;
                width: 50%;
                border-style: none none solid solid;
                border-width: 5px;
                border-color: red;
                margin-top: 100px;
            }
        </style>

        <title></title>
    </head>

    <body>
        <div id="container">
            <div id="header"></div>

            <div id="content">
                <div style="float: left;">
                    Test
                </div>
                <div id="section1">
                    <div style="text-align:center;">
                        <h1 style="color:#999999;">Please <a>Login</a> or <a>Signup</a></h1>
                    </div>

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



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: