题解 | #CSS选择器——标签、类、ID选择器#
CSS选择器——标签、类、ID选择器
https://www.nowcoder.com/practice/f76f7b7cbc8a47188481b425380b0785
{"html":"<html>\n <head>\n <meta charset=utf-8>\n <style type=\"text/css\">\n /*补全代码*/\n div{\n font-size: 20px;\n }\n div:nth-child(1){\n color: rgb(255, 0,0);\n }\n .green{\n color: rgb(0, 128, 0);\n }\n #black{\n color: rgb(0, 0, 0)\n }\n </style>\n </head>\n <body>\n <div>红色</div>\n <div class='green'>绿色</div>\n <div id='black'>黑色</div>\n </body>\n</html>","css":"/* html, body {\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tmargin: 0;\\n\\tpadding: 0;\\n} */","js":"// 请在这里输入代码"}