注册 登录
编程论坛 ASP技术论坛

大家好,我是一名新手,有个小问题请教一下

大叔控 发布于 2013-07-17 17:04, 561 次点击
#body .MainBlock123{
    width:731px;
    margin:auto;
    font-size:12px;
    left:300px;
    }


我在这里写了关于一个“天气插件”的靠左位置(left:300px;),可是起不到作用,应该改哪里呢??  万分感谢老师解答!!
1 回复
#2
ysf01812013-07-18 12:21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
body{
margin:0px;
padding:0px;
text-align:center;
}
.container{
margin-left:auto;
margin-right:auto;
text-align:left;
width:100%;
height:auto;
}
</style>
</head>

<body>
<br><br><br><br><br>
<div class="container">33333333</div>
</body>
</html>

[ 本帖最后由 ysf0181 于 2013-7-18 12:29 编辑 ]
1