0
我是一個CSS新手內對齊文本,我有一個HTML表格下方一個HTML表格
+-------------------------------+---------------------+
|Text Sample | text |
+-------------------------------+---------------------+
|Text Sample Sample | text |
+-------------------------------+---------------------+
給出我想改變Text1s的排列如下:
+-------------------------------+---------------------+
| Text Sample | text |
+-------------------------------+---------------------+
| Text1 Sample Sample | text |
+-------------------------------+---------------------+
這怎麼使用CSS完成?
'text-align:center'是什麼? – Havelock
您是否試圖根據該列中最長文本值的長度將固定頁邊距添加到第一列或將列1對齊? – Purpletoucan
@Purpletoucan沒那麼複雜。 – Shalin