对否~~~~~~~~~~~~
来源:2-24 编程练习
Oo君陌oO
2019-01-24 10:40:25
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
ul ol li:first-child{
color:red;
}
ul ol li:last-child{
color:blue;
}
ul ol li:nth-child(2){
color:green;
}
</style>
</head>
<body>
<ul>
<li>家用电器</li>
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</ul>
<ul>
<li>家用电器</li>
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</ul>
<ul>
<li>家用电器</li>
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</ul>
</body>
</html>1回答
你好,经测试代码实现效果是正确的。
继续加油!
相似问题