网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
2、阅读下面HTML代码,段落标签<p>内文本最终显示的颜色是() <style type="text/css"> body { color:#333; } #text{ color:#666; } .content { color:#00f; } .gray { color:#f00; } </style> ...... <p id="text" class="content gray">我本将心向明月,奈何明月照沟渠。</p>
A.#f00
B.#00f
C.#666
D.#333
参考答案和解析
A
更多 “2、阅读下面HTML代码,段落标签<p>内文本最终显示的颜色是() <style type="text/css"> body { color:#333; } #text{ color:#666; } .content { color:#00f; } .gray { color:#f00; } </style> ...... <p id="text" class="content gray">我本将心向明月,奈何明月照沟渠。</p>A.#f00B.#00fC.#666D.#333” 相关考题
考题
【问题 2】(3 分)网页制作人员欲设置已访问的超链接颜色为“#3333CC”,鼠标经过超链接时链接颜色变为“#FFFF66”,网页超链接的颜色为“#FFFFFF”。请根据以上描述将下列 CSS 代码中空缺的部分填写在答题纸的相应位置。a:link{color: " (8) ";text-decoration:none;}a:visited{color: " (9) ";text-decoration:none;}a:hover{color: " (10) ";text-decoration:underline;}
考题
阅读以下关于网页制作和网页编程的说明,回答问题1至问题3,并把解答填入对应栏中。【说明】某公司制作了一个电子商务网站,下图是网站向消费者收集反馈情况的反馈表。用户在填写反馈表时,需要正确地输入自己的相关信息,否则不能够提交成功,并且弹出提示信息。该功能通过调用外部JavaScript脚本checkinput.js文件实现。下面给出的是搜索按钮触发过程的代码,请根据下图完成下述HTML代码中空缺的部分。<html><head<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title (1) <style type="text/css"><!--.style2 {color: 3399CC}--(2)<script. language="JavaScript" src=" (3) "></script></head>省略部分代码……<td height="20" align="center" valign="top">公司名称:</td><td valign="middle"><form. action=" "method=" (4) "name="form3"><input name="textfield3" type="text" size="20"></form></td>省略部分代码……省略部分代码……</ html>
考题
如果想导入一个style.css文件到页面中,以下代码正确的是?()
A.〈link href="style.css" type="css" /〉B.〈link href="style.css" type="text/css" /〉C.〈link href="style.css" rel="text/css" /〉D.〈link href="style.css" type="text/css" rel="stylesheet" /〉
考题
请根据网页显示的效果图(如图12-4所示),将HTML文本中(n)处解答填于纸相应的解答栏内。<html><head><!-- TcmplateBeginEditable name="doctitle" --><title>论坛登录注意事项</title><!-- TemplateEndEditable --><meta. http-equiv="Content-Type" content="text/html; charset=-gb2312"><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><1-- TemplateParam name="Header" type="boolean" value="tme" --><!-- TemplateParam name="this" type="boolean" value="tme" --><!-- TemplateParmn name="UserName" (1) value="textfieldl"--><!-- TemplateParam name="Password" type="text" value="textfieldl" --><!-- TemplateParam name="ButtonName" type="text" value="Submit" --><!-- TemplateParam name="ButtonLabel" type="text" value="Sign In" --><!-- TemplateParam name="FormAction" type="text" value="" --><!-- TemplateParam name="FormMethod" type="text" value="post" --><!-- TemplateParam name="FormName" type="text" value="forml" --><style. type="text/css"><!--.stylel {font-size: 36px;font-weight: bold;}--></style></head><body class="sub"><div align="center"><span class="style1 ">论坛登录注意事项</span><br></div><formame="@@(FormName)@@method="@@(ForrnMethod) @@"action="@@(FormAetion) @@,,><table width="85%" border="0" cellspacing="0" cellpadding="1" class="TitleColor"><tr style="vertical-align: top"><td> <table width="100%" height="290" border="1" cellpadding="4" cellspacing="0"><tt class="HeaderColor"><td width="175" style="vertical-align: top"><!-- TemplateBeginEditable name="Title" --><h3 align="center">论坛登录</h3><!-- TemplateEndEditable --></td><td width="437" style="vertical-align: top"><!-- TemplateBeginIf eond="Header" --><!-- TemplateBeginEditable name="Title2" --><h3 align=(2)>注意事项</h3><!-- TemplateEndEditable --><!-- TemplateEndlf--></td></tr><tr style="vertical-align: top"><td height="230" class="TitleColor"><!-- TemplateBeginEditable name="Title3"--><label for="usemame"><strong>用户名称</strong></label><!-- TemplateEndEditable --><br><input id="usemame" name="usemame"type="text"(3)><p> </p><!-- TemplateBeginEditable name="Title4" --><label for="password"><strong>用户密码<input id="password3" name="password" type="password" size="25"></strong></label><!-- TemplateEndEditable --><div align="right"><strong>&nbs
考题
请根据网页显示的效果图(如图14-4所示),将HTML文本中(n)处的解答填于相应的解答栏内。[说明]<html><head><!-- TemplateBeginEditable name="doctitle" --><title>Untitled Document</title><!-- TemplateEndEditable --><meta. http-equiv="Content-Type" eontent-"text/html; charset=gb2312"><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- TemplateParam name="BodyBackgroundColor" type="color" value="FFFFFF" --><!-- TemplateParam name="FooterColor" type="color" value="CCCCCC" --><!-- TemplateParam name="ImageTitleColor" type="color" value="CCCCCC" --><!-- TemplateParam name="Footer" type="boolean" value="true" --><style. type="text/css"><!--body {background-color: FFFFFF;}--></style></head><body marginwidth="0" marginheight="0" leffmargin="0" topmargin="0"><br><table width="45%" border="0" cellspaeing="2" cellpadding="4" align="center"><tr bgcolor="@@(ImageTitleColor )@@"><td height=-"20"><!-- TemplateBeginEditable name="ImageTitle" --><div align="center">图片浏览(日落) </div><!-- TemplateEndEditable --x/td>.</tr><tr><td width="60%" height="169" align="center"> <!-- TemplateBeginEditable name="Image" --><IMG nClick=over(this) title=放大 (1) name="image" width="318" height="137" (2) (3) ><!-- TemplateEndEditable --></td></tr></table><br><hr width="55 %" noshade size="1"><hr><!-- TemplateBeginEditable name="Navigation" --><table width="63%" border="0" cellspacing="0" cellpadding="4" align="center"><tr><td width="20%" align="right"><nobr><a href="">(4); First</a>|<a href="">(5);Previous</a></nobr></td><td width="20%" align="center"><nobr><a href="">(6)</a>|2| <a href="">3</a>|<a href="">4</a> | <a href="">5</a></nobr></td><td align="left" width="20%"><nobr><a href="">Next </a>|<a href="">Last(7); </a></nobr></td></tr></table><!-- TemplateEndEditable --></body></html>
考题
改变某个元素的文本颜色的 CSS属性是( )。A.text—colorB.FgcoiorC.colorSX
改变某个元素的文本颜色的 CSS属性是( )。A.text—colorB.FgcoiorC.colorD.text—color
考题
以下哪段代码是获取控件内文本的颜色()。A、var color = aa.style.colorB、aa.style.color = ‘blue’C、var width = aa.borderWidthD、var style = aa.style.borderBottomStyle
考题
创建一个样式表,可以设置当前页面中ID为compact元素的内容的字体为斜体.下列能实现该功能的代码是()A、STYLE TYPE="text/css" compact{font-style:italic;}/STYLEB、STYLE TYPE="text/css" @compact{font-style:italic}/STYLE C、STYLE TYPE="text/css" .compact{text-style:italic;}/STYLE D、STYLE TYPE="text/css" #compact{font-style:italic;}/STYLE
考题
在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
考题
下列哪种标签不属于定义CSS样式的内容()A、a:link{color:blue;}B、# header{margin-top:auto;}C、p style="line-height:23px:"D、body background="#FF00FF"
考题
创建一个样式表,可以设置当前页面中ID为compact元素的内容的字体为斜体。下列能实现该功能的代码是()。A、STYLE TYPE=“text/css”compact{font-style:italic;}/STYLEB、STYLE TYPE=“text/css”@compact{font-style:italic;}/STYLEC、STYLE TYPE=“text/css”.compact{text-style:italic;}/STYLED、STYLE TYPE=“text/css”#compact{font-style:italic;}/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、 a:link {color: #FF3366;font-family: "宋体";text-decoration: none;}B、 a:visited {font-family: "宋体";color: #339900;text-decoration: none;}C、 a:hover {color: #FF6600;font-family: "宋体";text-decoration: underline;}D、 a:active (font-family: "宋体";color: #339900;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>
考题
以下选项中哪个是给p标签添加颜色的jQuery语法()。A、$("p").css("color","red")B、p.css("color","red")C、p.style.color="red"D、p.style="red"
考题
在CSS中,要实现链接字体颜色为红色,无下划线,当鼠标移过时显示下划线的效果,以下选项正确的是()。A、a:link{color:#ff0000;} a:hover{text-decoration:underline;}B、a{color:#ff0000;text-decoration:none;} a:hover{text-decoration:overline;}C、a{text-decoration:underline;} a:hover{color:#ff0000;text-decoration:none;}D、a:link{color:#ff0000;text-decoration:none;} a:hover{text-decoration:underline;}
考题
下列代码段是某页面的样式设置: 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
考题
多选题为了给页面所有标题创建样式规则,指定将所有的标题显示为蓝色,字体显示为Arial。下列操作正确的是()。ASTYLE TYPE=text/cssH1{color:blue}H1{font-family:Arial}/STYLEBSTYLE TYPE=text/cssH1{color:blue;fontface:Arial}/STYLECSTYLE TYPE=text/cssH1{color:blue;font-family:Arial}/STYLEDSTYLE TYPE=text/cssH1{color:blue}H1{fontface:Arial}/STYLE
考题
单选题在CSS中,要实现链接字体颜色为红色,无下划线,当鼠标移过时显示下划线的效果,以下选项正确的是()。A
a:link{color:#ff0000;} a:hover{text-decoration:underline;}B
a{color:#ff0000;text-decoration:none;} a:hover{text-decoration:overline;}C
a{text-decoration:underline;} a:hover{color:#ff0000;text-decoration:none;}D
a:link{color:#ff0000;text-decoration:none;} a:hover{text-decoration:underline;}
考题
单选题以下选项中哪个是给p标签添加颜色的jQuery语法()。A
$(p).css(color,red)B
p.css(color,red)C
p.style.color=redD
p.style=red
考题
单选题下列代码使用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>
考题
单选题以下哪段代码是获取控件内文本的颜色()。A
var color = aa.style.colorB
aa.style.color = ‘blue’C
var width = aa.borderWidthD
var style = aa.style.borderBottomStyle
考题
单选题创建一个样式表,可以设置当前页面中ID为compact元素的内容的字体为斜体。下列能实现该功能的代码是()。A
STYLE TYPE=“text/css”compact{font-style:italic;}/STYLEB
STYLE TYPE=“text/css”@compact{font-style:italic;}/STYLEC
STYLE TYPE=“text/css”.compact{text-style:italic;}/STYLED
STYLE TYPE=“text/css”#compact{font-style:italic;}/STYLE
热门标签
最新试卷