<div style="text-align:center;">
<select id="sponsorList"></select> <img alt="Loading..." src="../../Img/ajax-loader.gif" id="loader" />
<span style="display:none;" id="selectedSponsorId"></span>
<div id="sponsorRowDetails" style="margin-left:auto; margin-right:auto;">
<table>
<tbody>
<tr>
<td>Effective Date: </td>
<td><input type="text" id="startDate" /><br /></td>
</tr>
<tr>
<td>End Date: </td>
<td><input type="text" id="endDate" /></td>
</tr>
</tbody>
</table>
</div>
</div>
的中央使select
框是中心,但内sponsorRowDetails
中心对齐以及我不能得到的一切。对齐股利
我很喜欢简单的CSS这样的事情。我究竟做错了什么?我也尝试text-align:center;
与其他股利,以及直接在第一格保持表。
我有点困惑,你想要达到什么。你想让你桌子的元素的文字中心对齐吗? – doctorless
我只想整个表格的内部是在页面中心对齐,整个表格本身。 – slandau