关于行内式引入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>
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>
举一反三
- 10.关于行内式引入CSS样式表,以下书写正确的是() A: &lt;pstyle=font-size:12px;color:red;&gt;段落文本&lt;/p&gt; B: &lt;pstyle=&quot;font-size:12px,color:red;&quot;&gt;段落文本&lt;/p&gt; C: &lt;pstyle=&quot;font-size:12px;color:red;&quot;&gt;段落文本&lt;/p&gt; D: &lt;pstyle=&quot;font:12px;color:red;&quot;&gt;段落文本&lt;/p&gt;
- 关于行内式引入CSS样式表,以下书写正确的是() A: <;pstyle=font-size:12;color:red;>;段落文本<;/p>; B: <;pstyle="font-size:12px,color:red;">;段落文本<;/p>; C: <;pstyle="font-size:12px;color:red;">;段落文本<;/p>; D: <;pstyle="font:12px;color:red;">;段落文本<;/p>;
- 如果在网页中要用单独一行居中以红色7号字体显示“武汉理工大学”,则下面正确的选项包括( )。 A: <p align="center"><font size="+4" color=" B: FF0000">武汉理工大学</font></p> C: <p align="center"><font size="7" color="red">武汉理工大学</font></p> D: <p style="text-align:center;color:red;font-size:xx-large">武汉理工大学</p> E: <p style="text-align:center;color:rgb(255,0,0);font-size:xx-large">武汉理工大学</p>
- 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>
- {下面代码使用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>}