A: <Style Type=”text/css”> P {color:red} </Style>
B: <Style Type=”text/css”>
C: firstp {color:red} </Style>
D: <Style Type=”text/css”> .firstp {color:red} </Style>
E: <Style Type=”text/css”> P.firstp {color:red} </Style>
举一反三
- 下面代码使用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"> p.firstp {color:red}</style>
- 下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id="firstp">这是第一个段落</P>下面选项中,( )正确定义了上面代码引用的样式规则。 A: <STYLE TYPE="text/css">p{color:red}</STYLE> B: <STYLE TYPE="text/css"> C: firstp{color:red}</STYLE> D: <STYLE TYPE="text/css">.firstp {color:red}</STYLE> E: <STYLE TYPE="text/css">p.firstp{color:red}</STYLE>
- {下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id="firstp">这是第一个段落</P>下面选项中,()正确定义了上面代码引用的样式规则。} A: {<style type="text/css">p {color:red}</style>} B: {<style type="text/css"> C: firstp {color:red}</style>} D: {<style type="text/css">.firstp {color:red}</style>} E: {<style type="text/css">p.firstp {color:red}</style>}
- 在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示:<Pclass=“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"> E: firstp{color:red}</style>
- 下面代码使用HTML元素的id属性,将样式应用于网页上的某个段落:[p id="firstp"]这是第一个段落 以下关于样式规则定义正确的是( )。 未知类型:{'options': ['[style type="text/css"] p{color:red}[/]', '[style type="text/css"]', 'firstp {color:red}</style>', '[style type="text/css"] .firstp {color:red}[/]', '[style type="text/css"] p.firstp {color:red}[/]'], 'type': 102}
内容
- 0
下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落: [pid="firstp"]这是第一个段落 以下关于样式规则定义正确的是()。 A: styletype="text/css"> p{color:red} B: C: firstp{color:red} D: .firstp{color:red} E: id=firstp {color:red}
- 1
关于行内式引入CSS样式表,以下书写正确的是( ) A: <p style=font-size:12px; color:red;>段落文本</p> B: <p style="font-size:12px, color:red;">段落文本</p> C: <p style="font-size:12px; color:red;">段落文本</p> D: <p style="font:12px; color:red;">段落文本</p>
- 2
智慧职教: 定义内部CSS样式,则页面上段落文字的显示颜色是() <style type="text/css"> body{color:black;} .color_red{color:red;} p{color:blue;} </style>
- 3
下面哪个属于标签选择器( ) A: <style type=”text/css”> pa{bgcolor:red}</style> B: <style type=”text/css”> .mv{bgcolor:green}</style> C: <style type=”text/css”> D: first{bgcolor:blue}</style> E: <style type=”text/css”> div{bgcolor:red}</style>
- 4
有内部样式表定义如下: <style type="text/css"> p{color:red;font-size:15px;} </style> 同时,有 HTML代码如下所示: <p style="background-color:gray;color:blue;">p text</p> 段落中的文本”p text“的最终显示效果是