本帖最后由 李桐 于 2013-1-21 12:37 编辑
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>登录</title>
- <style type="text/css">
- body{
- margin:0px;
- padding:0px;
- font-size:12px;
- background-color:#016aa9;
- overflow:hidden;
- text-align:center;}
- #container{
- width:980px;
- height:100px;
- border:1px solid red;}
- </style>
- </head>
-
- <body>
- <div id="container">
- </div>
- </body>
- </html>
复制代码 大家看一下 我让container居中怎么不行呢???
|