我正在制作一个ASP.NET网页控件。在表格中,如何使按钮居中?
谢谢
发布于 2010-05-10 22:39:11
如果要使内联元素居中,请将容器设置为:
text-align:center; eg:
<div style="text-align:center;"><input type="submit" value="Center Me!"></div>如果要将块级元素居中,请将其设置为:
margin:auto; eg:
<div style="margin:auto;">Im in the middle</div>发布于 2010-05-10 22:39:03
最简单的方法是将
<td align="center">
--content here--
</td>发布于 2013-02-16 15:33:18
这很简单..
<div>
//your html code ..
<table>
//data inside the table ..
<button align="center"> Click here </button>
</table>
</div>https://stackoverflow.com/questions/2803458
复制相似问题