我试着让它们中的一种颜色不同。
#red li {
color: red;
}<ul>
<li id="red">Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
发布于 2018-01-23 13:04:12
li#red{
color: red;
}<ul>
<li id="red">Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
/*If you like to change just text color not bullet, please try the following one:*/
li #red{
color: red;
}<ul>
<li><span id="red">Coffee</span></li>
<li>Tea</li>
<li>Milk</li>
</ul>
https://stackoverflow.com/questions/48387532
复制相似问题