我在做网页时用绝对位置布局,现在想居中,怎么办?
我用了以下方式都不行
1:<body>后加个<center>
</body>前加个</center>
2:align=center都不行,怎么办?难道非要重新编排控件吗?
我用了以下方式都不行
1:<body>后加个<center>
</body>前加个</center>
2:align=center都不行,怎么办?难道非要重新编排控件吗?
text-align:center;
}#qb{
TEXT-ALIGN: left;
}======================
以上能用,记得加分哦
比如说
#container
{
width:1000px;
margin-left:auto;
margin-right:auto
}
这样就可以了,在火狐和IE中正常
7楼的,你那代码写在那,是什么语言,我用的是VB2005
<body >
<center >
<form id="form1" runat="server">
<div style="width: 1024px; margin: auto">你那语句放那?
我这句不行
<title></title>
<style type="text/css">
body{margin:0 auto;width:1024px;text-algin:center;}
</style>
</head>
<body >
<form id="form1" runat="server">
<div>
</div>
</form>
</body>