题目详情
单选题 下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<p id="firstp">这是第一个段落</p> 以下关于样式规则定义正确的是()
A. <style type="text/css"> p{color:red} </style>
B. <style type="text/css"> # firstp {color:red} </style>
C. <style type="text/css"> .firstp {color:red} </style>
D. <style type="text/css"> id=firstp {color:red} </style>

学科:Web开发技术
时间:2023-06-13 03:05:42
相关题目
相关作业
