-6
我有10個UL,每個有5個LI。它看起來像一張桌子,但我想只在背後有背景。 我試圖做一個小時。它甚至有可能嗎?CSS樣式的無序列表
ul {
background: whitesmoke;
padding-top: 0px;
}
ul:nth-child(odd) { background: ghostwhite; }
li:nth-child(3n) {
font-weight: bold;
color: white;
}
li:hover {
background-color: greenyellow;
}
ul:hover {
background-color: yellow;
}
li{
display: inline-table;
padding-top: 0px;
}
ul {
font-size: 1px;
}
ul li {
font-size: 14px;
display: inline-block;
width: auto;
}
告訴我們你做了什麼 –
你可以請添加代碼,並解釋你已經嘗試過嗎? – 2017-10-12 20:19:28
@TemaniAfif對不起 –