我搜索了高低,發現了一些東西,但沒有涉及到我需要的東西。如何爲表格製作成角度的邊框。
我需要這個:
而且我現在有這樣的:
我的問題是,如何讓第一右側邊框的角度通過CSS所示。
現在,我把它作爲一個表格(我知道,表格是2000年的)。
<table class="issue-finder">
<tr>
<td class="first-child"><a href="#">Issue<br>Finder</a></td>
<td><a href="#">P-12<br>Education</a></td>
<td><a href="#">Higher<br>Education</a></td>
<td><a href="#">Workforce<br>Outcomes</a></td>
<td><a href="#">Health & Human<br>Services</a></td>
</tr>
</table>
和CSS是:
.issue-finder {
width: 100%;
text-align: center;
height: 100px;
background-color: #c2db73;
}
.issue-finder td.first-child {
border-right: 1px solid #000000;
}
.issue-finder td {
width: 15%;
border-right: 1px solid #ffffff;
}
.issue-finder a {
text-decoration: none;
color: #000000;
}
我應該這樣做,像一些例子名單隻見SO或者是表罰款?如果一張桌子很好,我會怎麼去編碼呢?多謝你們!
我不會用這個表......太複雜/ –
從語義角度來看,該內容不屬於表(至少添加'role =「presentation」'),而是屬於無序列表。從實際的角度來看,您可能比表格更容易設定列表的樣式。 – steveax
找到了一些只使用CSS-HTML。看到我的更新 –