用BBcode代码制作表格
用BBcode代码制作表格
行1 - 单元格1 (文字置中) | 行1 - 单元格2 (文字置中) | 行1 - 单元格3 (文字置中) |
行2 - 单元格1 (文字靠左) | 行2 - 单元格2 (文字靠左) | 行2 - 单元格3 (文字靠右) |
- 代碼:
[table border=5 width=730 bordercolor=#0000ff]
[tr bgcolor=#dddddd]
[td width=150 height=50][center]行1 - 单元格1
(文字置中)[/center][/td]
[td width=200][center]行1 - 单元格2
(文字置中)[/center][/td]
[td width=380][center]行1 - 单元格3
(文字置中)[/center][/td]
[/tr]
[tr bgcolor=#fce9d4]
[td height=80]行2 - 单元格1
(文字靠左)[/td]
[td]行2 - 单元格2
(文字靠左)[/td]
[td][right]行2 - 单元格3
(文字靠右)[/right][/td]
[/tr]
[/table]
rb1606- 文章數 : 4198
注冊日期 : 2012-11-06
用百分比设定单元格宽度
A | B | C |
1 | 2 | 3 |
- 代碼:
[table border=5 width=730 bordercolor=#0000ff]
[tr bgcolor=#dddddd]
[td width=30% height=50][center]A[/center][/td]
[td width=50%][center]B[/center][/td]
[td width=20%][center]C[/center][/td]
[/tr]
[tr bgcolor=#fce9d4]
[td height=80]1[/td]
[td]2[/td]
[td][right]3[/right][/td]
[/tr]
[/table]
rb1606- 文章數 : 4198
注冊日期 : 2012-11-06
回復: 用BBcode代码制作表格
A | B | C |
1 | 2 | 3 |
text here | text here | text here |
text here | text here | text here |
text here | text here | text here |
text here | text here | text here |
- 代碼:
[table border=5 width=730 bordercolor=#0000ff]
[tr bgcolor=#dddddd]
[td width=30% height=50][center]A[/center][/td]
[td width=50%][center]B[/center][/td]
[td width=20%][center]C[/center][/td][/tr]
[tr bgcolor=#fce9d4]
[td height=80][right]1[/right][/td]
[td][right]2[/right][/td]
[td][right]3[/right][/td]
[/tr]
[tr]
[td bgcolor=#FBFBCB]text here[/td]
[td]text here[/td]
[td bgcolor=#FBFBCB]text here[/td]
[/tr]
[tr]
[td]text here[/td]
[td bgcolor=#FBFBCB]text here[/td]
[td]text here[/td]
[/tr]
[tr]
[td bgcolor=#FBFBCB]text here[/td]
[td]text here[/td]
[td bgcolor=#FBFBCB]text here[/td]
[/tr]
[tr]
[td]text here[/td]
[td bgcolor=#FBFBCB]text here[/td]
[td]text here[/td]
[/tr]
[/table]
rb1606- 文章數 : 4198
注冊日期 : 2012-11-06
這個論壇的權限:
您 無法 在這個版面回復文章