Correction status:qualified
Teacher's comments:作业已检查!
博客发布作业中添加了线上运行代码的新功能!
群文中找到入群必读文件夹下的博客如何提交作业.gif图下载了解!
博客提交作业时请把状态切换到作业!不然程序检测不到提交!
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>彩虹球</title> <style type="text/css"> ul { padding: 0; margin: 0; width: 450px; border: 0px dashed #666; padding: 10px 5px; } ul:after { content:''; display: block; clear:both; } li { list-style: none; float: left; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; background: skyblue; margin-right: 5px; } #item1{ background-color: red } .green{ background-color: orangered } ul li{ color: white } li[class="red"] { background-color: yellow } li[id="item2"] { background-color: mediumseagreen } #item2 + li { background-color: aqua } li[class ~= "black"] { background-color: mediumblue; } li[class $= "e"] { background-color: purple } </style> </head> <body> <ul> <li id="item1">1</li> <li class="green">2</li> <li class="red">3</li> <li id="item2">4</li> <li>5</li> <li class="black">6</li> <li class="blue">7</li> </ul> </body> </html>
点击 "运行实例" 按钮查看在线实例