以下哪段代码是CSS代码?
A: .democlass {color:red;}
B: <p>这是一个段落</p>
C: <span class="democlass">演示文字</span>
D: <link rel=stylesheet type='text/css' href='3-2-0-style.css'>
A: .democlass {color:red;}
B: <p>这是一个段落</p>
C: <span class="democlass">演示文字</span>
D: <link rel=stylesheet type='text/css' href='3-2-0-style.css'>
举一反三
- {下面代码使用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>}
- 关于行内式引入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>
- 下列那种引入css的方式是错误的?( ) A: <link href=”mystyle.css” rel=”stylesheet” type=”text/css”> B: <style type=”text/css”> import “mystyle.css”; </style> C: <h1 style=”color:white”>这是一行字</h1> D: <style type=”text/css”> h1{color:white}</style>
- CSS样式代码如下所示,则选项( )能够实现在页面中将“文本”两个字显示为红色<style type="text/css"> #h1 { color:red; } .title { color:red; }</style>。 A: <p class="title">文本</p> B: <h1>文本</h1> C: <h1 id="title">文本</h1> D: <p name="h1">文本</p>
- 以下哪段代码是CSS代码? 未知类型:{'options': ['.democlass {color:red;}', '这是一个段落', '[span class="democlass"]演示文字[/]', "[link rel=stylesheet type='text/css' href='3-2-0-style.css']"], 'type': 102}