<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