-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对不起 –