一个奇怪的问题
如下一段代码,第一个div中的button无法居中,二第二个div中的label可以居中;
但如果屏蔽第一个div,则第二个div中的label就无法居中,想请教这会是什么问题?这段代码是写在一个母版里的,会不会是母版影响?
<div style="width:800px;margin:0 auto;">
<cener />
<asp:Button ID="btnAdd" runat="server" Text="添加角色" />
</div>
<div style="width:100%;margin-left: auto;margin-right: auto;">
<center/>
<asp:Label ID="Label1" runat="server" Text="个人月度工作报告" Font-Bold="True"
Font-Names="宋体" Font-Size="15pt"></asp:Label>
</div>