在HTML中,使用HTML元素的class属性,将样式应用于页面上某段代码如下所示:class=”one”>段落分析选项中,()正确定义了上面代码引用的样式规则。
A. <style type=”text/css”>P{width:200px}</style>
B. <style type=”text/css”>P{bgcolor:red}</style>
C. <style type=”text/css”>one{width:200px}</style>
D. <style type=”text/css”>.one{bgcolor:gray}</style>