0
A
回答
2
相當簡單.....你的混亂是你有多少行。該表中只有2行。
2
<table>
<tr>
<td rowspan="2"></td>
<td rowspan="2"></td>
<td colspan="4"></td>
<td rowspan="2"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
2
試試這個...如果你有Dreamweaver的工具,你可以做到這一點很容易....
<table width="200" border="1">
<tr>
<td rowspan="2"> </td>
<td rowspan="2"> </td>
<td colspan="4"> </td>
<td rowspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
1
<html>
<head>
<style type='text/css'>
table {
border-spacing:0;
}
td {
border:1px solid grey;
}
</style>
</head>
<body>
<table>
<tr>
<td rowspan='2'>1 col, 2 rows</td>
<td rowspan='2'>1 col, 2 rows</td>
<td colspan='4'>4 col, 1 row</td>
<td rowspan='2'>1 col, 2 rows</td>
</tr>
<tr>
<td>1 col, 1 row</td>
<td>1 col, 1 row</td>
<td>1 col, 1 row</td>
<td>1 col, 1 row</td>
</tr>
</table>
</body>
</html>
編輯 - 我會推薦agai nst所見即所得的編輯,因爲你不會學習如何自己做。學習會讓你頭痛,但是你知道。給一個男人一條魚......
2
最簡單的方法是Dreamweaver的,但它並不需要很多的處理合並單元格和行跨度,我只是做這個用很少的思考,我用的jsfiddle公正,以確保它是正確的。
享受。
<table>
<tr>
<td rowspan="2"></td>
<td rowspan="2"></td>
<td colspan="4"></td>
<td rowspan="2"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
2
<table>
<thead>
<tr>
<th rowspan="2">город 1</th>
<th rowspan="2">город 2</th>
<th colspan="4">город 3</th>
<th rowspan="2">город 4</th>
</tr>
<tr>
<th>город 5</th>
<th>город 6</th>
<th>город 7</th>
<th>город 8</th>
</tr>
</thead>
</table>
2
事情是這樣的:
<table>
<tr>
<td rowspan="2"> </td>
<td rowspan="2"> </td>
<td colspan="4"> </td>
<td rowspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
2
<html>
<head>
</head>
<body>
<table border="1">
<tr>
<td rowspan="2">one</td>
<td rowspan="2">Two</td>
<td colspan="4">Im big!</td>
<td rowspan="2">Last</td>
</tr>
<tr>
<td rowspan="2">one</td>
<td rowspan="2">Two</td>
<td>Part 1</td>
<td>Part 2</td>
</tr>
</table>
</body>
</html>
2
在這裏,你去..
<table border="1">
<tr>
<td rowspan="2"></td>
<td rowspan="2"></td>
<td colspan="4"></td>
<td rowspan="2"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
2
合作lspan結合了列,rowspan結合了行。所以你看最多有多少行,最多有多少列。
你的情況,你有最多7列和2行最大:
<table border="1">
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
<td>d</td>
<td>e</td>
<td>f</td>
<td>g</td>
</tr>
<tr>
<td>h</td>
<td>i</td>
<td>j</td>
<td>k</td>
<td>l</td>
<td>m</td>
<td>n</td>
</tr>
</table>
然後你把列/行:
<table border="1" style="padding:5px;border-spacing:10px">
<tr>
<td rowspan="2">a (former a)</td>
<td rowspan="2">b (former b)</td>
<td colspan="4">c (former c)</td>
<td rowspan="2">d (former g)</td>
</tr>
<tr>
<td>e</td>
<td>f</td>
<td>g</td>
<td>h</td>
</tr>
</table>
相關問題
- 1. 如何中心這個表 - HTML /引導
- 2. 這個html如何提交表單?
- 3. 如何構建這個HTML表格?
- 4. 如何使這個HTML更改工作?
- 5. 如何使這個HTML表單可擴展?
- 6. 如何在java中使用jsoup提取/解析這個html表?
- 7. PHP/HTML/JS:這個HTML表單是如何處理的?
- 8. 如何在HTML中做這種表格?
- 9. 如何使這個表達式否定
- 10. 我如何使用這個表達式
- 11. 我如何使這個列表工作
- 12. 如何使這個表結構響應
- 13. 如何使這個列表項「縮放」
- 14. 如何使這個列表理解
- 15. 如何使這個
- 16. 如何從這個HTML刪除文本
- 17. 如何解析這個特定的html?
- 18. 如何生成HTML這個在玉
- 19. 如何運行這個html combobox示例?
- 20. 如何用jquery替換這個html?
- 21. 如何在CSS中定位這個HTML?
- 22. 如何解決這個HTML表格左對齊
- 23. 我如何格式化這個動態生成的html表格
- 24. 如何在asp.net中生成這個html表?
- 25. 如何這個樣式表可以生成HTML輸出
- 26. 如何將這個JSON文件作爲HTML表格輸出?
- 27. Html,CSS - 如何創建一個這樣的甜甜圈圖表?
- 28. 如何爲這個html字符串生成正則表達式?
- 29. 如何將這兩個html表連接在一起?
- 30. 如何動態添加行到這個HTML表格...?
Absolutelly感謝所有,你已經保存了我的屁股^ _^ – NiLL 2011-12-22 09:05:42
你可能想看看一些基本的網站,如http://www.w3schools.com/html/或(如果你可以閱讀德語)http://de.selfhtml.org/ – 2011-12-22 09:30:35
駝鹿,謝謝爲鏈接。 – NiLL 2011-12-22 09:35:57