网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

【单选题】设有以下样式代码: p {color:red; font-size:15px} p {color:blue;} 下列说法正确的是

A.p元素中的文本颜色为红色,字体大小为15像素

B.p元素中的文本颜色为红色,字体大小为默认大小

C.p元素中的文本颜色为蓝色,字体大小为默认大小

D.p元素中的文本颜色为蓝色,字体大小为15像素


参考答案和解析
A
更多 “【单选题】设有以下样式代码: p {color:red; font-size:15px} p {color:blue;} 下列说法正确的是A.p元素中的文本颜色为红色,字体大小为15像素B.p元素中的文本颜色为红色,字体大小为默认大小C.p元素中的文本颜色为蓝色,字体大小为默认大小D.p元素中的文本颜色为蓝色,字体大小为15像素” 相关考题
考题 ● 以下CSS 选择符定义中, (61) 属于类选择符。A. P {color:red; font-size:12pt } B. p.blue{color:blue}C. #Red{color:red;} D. P EM { background: yellow }

考题 设有说明var color:(red,green,yellow,blue);a:boolean;下面语句正确的是( )。 Aolor:=‘green‘;Bwriteln(green);Cwriteln(color);Da:=color=red;

考题 以下样式规则正确的是()。 A.h1{color:red。font-size:25px。}B.img{color:red;font-size:25px;}C.h1{font-color:red;font-size:25px;}D.h1{color:red;font-size:25px;}

考题 ● 以下CSS 选择符定义中, (61) 属于类选择符。(61)A. P {color:red; font-size:12pt }B. p.blue{color:blue}C. #Red{color:red;}D. P EM { background: yellow }

考题 下面哪个选项不符合样式表的基本语法规则()? A.a:link {color: #FF3366;font-family: "宋体";text-decoration: none;}B.message [PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px;]C.h1#blue{color:blue;}D.h2{color:red;font-size:14px;}

考题 下面哪个选项不符合样式表的基本语法规则? ()A. h2{color:red;font-size:14px;}B. h1#blue{color:blue;}C. message [PADDING-RIGHT: Opx; DISPLAY: none; PADDING-LEFT: Opx;]D. a:link{color: #FF3366;font-family:"宋体"; text-decoration: none;}

考题 以下关于样式表项的定义中,错误的是:()。 A.H1, H2 {color:red}B.H1 B{color:red}C.H1#color_red{color:red}DA:Active {color:red}

考题 以下选项中不能正确把c1定义成结构体变量的是A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;B.struct color c1 {int red int green: int blue; };C.struct color {int red , int green : int blue : )cl;D.struct {int red; int green; int blue } c1 ;

考题 以下选项中不能正确把cl定义成结构体变量的是A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; }C.struct color { int red; int green; int blue; } cl;D.struct { int red; int green; int blue; } cl;

考题 以下选项中不能正确把c1定义成结构体变量的是A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;B.struct color cl { int red; int green; int blue; };C.struet color { int red; int green; int blue; }c1;D.struct { int red; int green; int blue; }cl;

考题 下列选项中不能正确定义结构体的是_______。A.typedef structB.struct color cl {int red; {int red; int green; int green; int blue; int blue; }COLOR; }; COLOR cl;C.struct colorD.struct {int red; {int red; int green; int green; int blue; int blue; }cl; }cl;

考题 以下选项中能正确把c1定义成结构体变量的是( )。A.typedef struct { int red; int red; int green; int blue; }COLOR; COLOR c1;B.struct color c1 { int red int red; int green int blue; };C.stmctcolor { int red, int green; int blue; }c1;D.struct { int red; int green; int blue; }c1;

考题 以下CSS选择符定义中,______属于类选择符。 A.P{color:red; font-size:12pt} B.p.blue{color:blue} C.#Red{color:red;) D.PEM {background: yellow}

考题 有一样式表规则:H3{color :blue;font-size:10pt},以下说法正确的是()。A、H3是选择器B、blue属性,color是属性值C、样式表中的冒号(:)可以用=替代D、这个样式表属于类样式表

考题 在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示: P class=“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

考题 关于行内样式语法格式正确的是()。A、〈p style="color:red,font-size:14px;"〉行内样式〈/p〉B、〈p style="color=red;font-size:14px;"〉行内样式〈/p〉C、〈p style="color:red;font-size:14px;"〉行内样式〈/p〉D、以上都不正确

考题 以下关于标签选择器语法格式正确的是()。A、{color:red;}B、h1{color:red;}C、h7{color:red;}D、p{color:red;}

考题 在HTML页面中,分析P{color:red;font-size:30px;font-family:"宋体";}这个样式规则,则以下选项中()表示属性。A、PB、colorC、宋体D、30px

考题 下列代码使用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>

考题 以下选项中哪个是给p标签添加颜色的jQuery语法()。A、$("p").css("color","red")B、p.css("color","red")C、p.style.color="red"D、p.style="red"

考题 下列代码段是某页面的样式设置: STYLE TYPE=”text/css”.blue{color:blue}.red{color:red} /STYLE现要求将页面中的第一个H1标题设置为红色,第一个段落设置为蓝色.下列代码正确的是()A、H1 id=red第一个标题/H1P id=blue第一个段落/p B、H1 color:red第一个标题/H1P color:blue第一个段落/p C、H1 class=red第一个标题/H1P class=blue第一个段落/p D、H2 class=red第一个标题/H2H1第一个标题H1P id=blue第一个段落/p

考题 public class Ball {  public enum Color { RED, GREEN, BLUE };  public void foo() {  // insert code here  { System.out.println(c); }  }  }  Which code inserted at line 14 causes the foo method to print RED, GREEN, and BLUE?() A、 for( Color c : Color.values())B、 for( Color c = RED; c = BLUE; c++)C、 for( Color c; c.hasNext() ; c.next())D、 for( Color c = Color[0]; c = Color[2]; c++)E、 for( Color c = Color.RED; c = Color.BLUE; c++)

考题 单选题以下选项中哪个是给p标签添加颜色的jQuery语法()。A $(p).css(color,red)B p.css(color,red)C p.style.color=redD p.style=red

考题 单选题下面哪个选项不符合样式表的基本语法规则 ?()A  h2{color:red;font-size:14px;}B  h1#blue{color:blue;}C  message [ PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px;]D  a:link {color: #FF3366;font-family: 宋体;text-decoration: none;}

考题 单选题下列代码使用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>

考题 单选题public class Ball {  public enum Color { RED, GREEN, BLUE };  public void foo() {  // insert code here  { System.out.println(c); }  }  }  Which code inserted at line 14 causes the foo method to print RED, GREEN, and BLUE?()A  for( Color c : Color.values())B  for( Color c = RED; c = BLUE; c++)C  for( Color c; c.hasNext() ; c.next())D  for( Color c = Color[0]; c = Color[2]; c++)E  for( Color c = Color.RED; c = Color.BLUE; c++)

考题 单选题有一样式表规则:H3{color :blue;font-size:10pt},以下说法正确的是()。A H3是选择器B blue属性,color是属性值C 样式表中的冒号(:)可以用=替代D 这个样式表属于类样式表

考题 单选题在HTML页面中,分析P{color:red;font-size:30px;font-family:"宋体";}这个样式规则,则以下选项中()表示属性。A PB colorC 宋体D 30px