0
A
回答
2
.background {
width: 100px;
height: 50px;
padding: 0;
margin: 0;
}
.line {
width: 112px;
height: 47px;
border-bottom: 1px solid red;
transform: translateY(-20px) translateX(5px) rotate(27deg);
position: absolute;
z-index: -1;
}
.background>div {
position: relative;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
.bottom {
position: absolute;
bottom: 1px;
left: 1px;
}
.top {
position: absolute;
top: 1px;
right: 1px;
}
<table>
<th class="background">
<div><span class="bottom">First</span>
<span class="top">Second</span>
<div class="line"></div>
</div>
</th>
</table>
+0
我已經調整了代碼。 – Gerard
相關問題
- 1. 如何垂直分割表格單元格
- 2. 如何保持絕對定位在表格中的表格單元格並對齊表格標題
- 3. 分組表視圖 - 圓角單元格?
- 4. 檢查表格視圖單元格的部分索引標題
- 5. Vuejs v-for與分割單元格的表格
- 6. 如何將CSS類設置爲表格標題單元格
- 7. 巨大的HTML表格,帶有固定標題,標題單元格和行單元格之間的對齊
- 8. 表格單元格對齊
- 9. 將HTML表格單元格分成兩列,表格沒有標題
- 10. 表格中特定單元格的行標題和列標題
- 11. Aspose Cell Java - 水平分割單元格
- 12. 關聯表格單元與標題
- 13. Mapkit用於分組表格單元格並擴展圓角
- 14. 在iTExt中的表格的單元格中繪製對角線?
- 15. 如何將表格標題放在表格單元格上方,如果它們在同一個表格行中?
- 16. 如何分割兩個表格字段?
- 17. 如何在表格中單元格單元格?
- 18. 如何用拆分標準對單元格進行求和?
- 19. 分組一些表格單元格
- 20. XSLT總分組表格單元格
- 21. jquery分表單元格
- 22. 如何在分割表格時將div分割爲兩列?
- 23. ExtJS網格單元格中的分割按鈕
- 24. 表格單元格中的標籤
- 25. 表格單元格中的jQueryUI圖標
- 26. CSS表格單元格IE8問題
- 27. 表格單元格indicater問題
- 28. 自定義表格單元格問題
- 29. 問題在每個表格單元格
- 30. DIV在表格單元格(Firefox問題)
你有沒有嘗試過的東西? –
請不要破壞你的問題。你可以刪除它,如果你喜歡(你有一個「刪除」鏈接下的問題標籤) –