题解 | #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    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      \n    </body>\n   \n</html>\n","css":"/* html, body {\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tmargin: 0;\\n\\tpadding: 0;\\n} */","js":"// 请在这里输入代码"}

div{}放在style里面

全部评论

相关推荐

11-03 14:57
西北大学 营销
Belltrix:其实就是每根转动一定的角度
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务