老师这样对吗?
来源:2-24 编程练习
李可意
2019-07-31 13:47:43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
ol > li:first-child{
color: red;
}
ol > li:last-child{
color: blue;
}
ol > li:nth-child(2){
color: green;
}
</style>
</head>
<body>
<ul>
<li>家用电器
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</li>
<li>清洁用品
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</li>
<li>妇婴用品
<ol>
<li>冰箱</li>
<li>洗衣机</li>
<li>空调</li>
</ol>
</li>
</ul>
</body>
</html>1回答
好帮手慕夭夭
2019-07-31
你好同学,效果实现正确,很棒!继续加油,祝学习愉快!
相似问题