0
A
回答
0
是的,這可能與rowspan
and colspan
attributes。
+0
就是這樣。問題是我有多個
,所以我沒有按預期工作:) – radoix
0
你可以使用的div標籤,像這樣
<div class="container">
<div class="top"> //thead of the photo </div>
<div class="bottom">
<div class="bottom-left">
放置更多的DIV標籤來表示行在這裏
</div>
<div class="bottom-right">
THIS IS THE COLUMN
</div>
</div>
</div>
那麼對於樣式添加CSS到適當的大小。
希望這會有所幫助。
1
你可以用網格很容易實現這一點:
.thead {
padding: 5px;
grid-area: thead;
border: 3px solid gray;
}
.col {
grid-area: col;
border: 3px solid red;
}
.r {
border: 3px solid green;
padding: 5px;
}
.row-1 {
grid-area: row-1;
}
.row-2 {
grid-area: row-2;
}
.row-3 {
grid-area: row-3;
}
.row-4 {
grid-area: row-4;
}
.row-5 {
grid-area: row-5;
}
.container {
display: grid;
grid-template-columns: 2fr 1fr;
grid-template-areas:
"thead thead"
"row-1 col"
"row-2 col"
"row-3 col"
"row-4 col"
"row-5 col";
}
<div class="container">
<div class="thead">thead</div>
<div class="col">Col</div>
<div class="r row-1">Row 1</div>
<div class="r row-2">Row 2</div>
<div class="r row-3">Row 3</div>
<div class="r row-4">Row 4</div>
<div class="r row-5">Row 5</div>
</div>
Grid-template-areas確實值得探討。
相關問題
- 1. 自定義html表格(javascript)
- 2. 用自定義html預定Zend表格
- 3. HTML表格自定義問題
- 4. 如何自定義html表格邊框?
- 5. 製作自定義HTML標籤
- 6. 製作自定義邊框html
- 7. 如何製作自定義html控件
- 8. 在自定義表格單元格中繪製矩形
- 9. R格:如何製作自定義軸
- 10. 如何製作自定義單元格?
- 11. 在自定義窗格中繪製L.circle
- 12. 從控制器類自定義UIButton自定義表格單元
- 13. c#繪製自定義表格
- 14. 在iframe中製作自定義HTML元素可放入
- 15. HTML中的自定義LI格式?
- 16. 在Mathematica中自定義ANOVA表格
- 17. 在C中製作自定義shell Fork()
- 18. 在android中製作自定義組件
- 19. 在Android中製作自定義菜單
- 20. 自定義SurfaceView在Android中製作transperant
- 21. 在C#中製作自定義網格託管DirectX
- 22. 在Outlook中製作可摺疊的自定義任務窗格?
- 23. 如何在自定義單元格中使用autoresizingMask製作UILabel?
- 24. 如何在Java中製作自定義文件格式
- 25. 自定義HTML/PHP/Mysql表單在Joomla中不起作用
- 26. 自定義HTML JQuery表單不能在WordPress中工作
- 27. 製作自定義列表框
- 28. 製作自定義詞彙表
- 29. jQuery製表符自定義動作!
- 30. Sharepoint製作自定義列表只讀
我想你要找的是Bootstrap http://getbootstrap.com/ – adnanyousafch