怎样使得div处于页面的底部中央位置

怎样使得div处于页面的底部中央位置?求大神指教


<html>
    <head>
        <title> New Document </title>
        <style type="text/css">
            .b{
                height:100px;
                width:100px;
                background-color:black;


position:absolute;
bottom:0;
margin-left:-50px;/*div宽度的一半*/
left:50%;
            }
        </style>
    </head>
 
    <body>
        <div id="" class="b"> </div>
    </body>
</html>

 11-14行是底部居中的CSS代码

温馨提示:内容为网友见解,仅供参考
第1个回答  2014-10-04
align:center追问

是div位于页面底部中央,align是文字位于中央啊

相似回答