Still confused about the group selector? -PHP Chinese website Q&A-Still not sure about the group selector? -PHP Chinese website Q&A
Please watch and learn.
因为题目要求是第一段和第二段中<span>标签内元素颜色为绿色,用p,span{color:green;}就显示段落颜色都为绿色了,不符合题目要求。用.first,#second span{color:green;}是最准确的
Still confused about the group selector? -PHP Chinese website Q&A-Still not sure about the group selector? -PHP Chinese website Q&A
Please watch and learn.
因为题目要求是第一段和第二段中<span>标签内元素颜色为绿色,用p,span{color:green;}就显示段落颜色都为绿色了,不符合题目要求。用.first,#second span{color:green;}是最准确的