[英]Centering uneven rows within a centered table
我試圖在CSS中將表格及其行居中。
我可以使用以下方法使表格居中:
table.Center { margin-left:auto; margin-right:auto; }
但是,當我嘗試在表行上調用類似內容時,結果如下:
理想的結果是:
XX XXXX XXXX
為了視覺起見,使用兩個而不是三個。
如何將表格行居中到頁面上?
CSS解決方案:
table { text-align:center } td { display:inline-block }
http://jsfiddle.net/gz3X2/
[英]centering content within a centered div
[英]HTML table with fixed uneven rows
[英]centering ul within div (that is already centered on page)
[英]Centering text within an centered element, Css
[英]centering a number under text in a table that is centered to the left
[英]Centering table within div
[英]Centering a TABLE within a DIV
[英]Centering table with more rows
[英]Aligning uneven rows in div based table
[英]Structure a table with many uneven rows and columns - HTML
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.