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

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

在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>

参考答案

更多 “在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” 相关考题
考题 如果想导入一个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

考题 网页设计人员创建了一个外部样式表webstyle.css,下面的说法中( )是正确的。A.在body/body标签中引用wehstyle.css文件使用该样式表B.在head/head标签中引用webstyle.css文件使用该样式表C.在web页面中使用style/style标签引用webstyle.css文件使用样式表D.在相关标签内部使用style属性引用webstyle.css文件使用样式表

考题 链接一个外部样式表文件可以记为:()href=”../chapter5/style.css” re;=() type=()

考题 下列能够正确在一个htm页面中导入在同一目录下的“StyleSheetl.css”样式表的是()。A、syle@import StyleSheet1.css;/style B、link rel="stylesheet" type="text/css" href="StyleSheetl.css" C、link rel="StyleSheetl.css" type="text/css" D、link rel="stylesheet" type="text/javascript" href="../htm/StyleSheetl.css"

考题 创建一个样式表,可以设置当前页面中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中,哪个是正确引用外部样式表的方法?()A、style src="mystyle.css"B、link rel="stylesheet" type="text/css" href="mystyle.css"C、stylesheetmystyle.css/stylesheet

考题 使进度条控件以条形方式显示的样式是?()A、type=“?andriod:attr/progress Bar Style Horizontal”B、style=“?andriod:attr/progress Bar Style Horizontal”C、style=“?andriod:progress Bar Style Horizontal”D、type=“?andriod:progress Bar Style Horizontal”

考题 创建一个样式表,可以设置当前页面中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、以上都不正确

考题 内嵌样式是一种在head标签内,嵌套〈style〉〈/style〉标签来书写CSS代码的样式表。

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

考题 不属于把CSS样式表与HTML网页关联的方法的是()。A、在HTML文档的<!--...-->标签内定义CSS样式 B、用<link>标签链接外部的CSS样式表文件C、在HTML文档的<head></head>内定义CSS1样式:<style>...</style>D、用@import引入样式表文件

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

考题 用原生的js添加样式的方法为$("div").style.color="red"。()

考题 js的以下操作中可以给div添加样式的是()。A、div.style.color="red"B、div.style="red"C、div.color="red"D、div.style.color("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

考题 以下的CSS中,可使所有<p>元素变为粗体的正确语法是?()A、p style="font-size:bold"B、p style="text-size:bold"C、p {font-weight:bold}D、p {text-size:bold}

考题 下列能够正确在一个htm页面中导入在同一目录下的“StyleSheet1.css”样式表的是()。A、style@importStyleSheet1.css;/styleB、link rel=”stylesheet”type=”text/css”href=”StyleSheet1.css”C、link rel=”StyleSheet1.css”type=”text/css”D、link rel=”stylesheet”type=”text/javascript”href=”../htm/StyleSheet1.css”

考题 在HTML的元素上应用CSS类选择器样式,需要添加哪个HTML属性?()A、css=B、class=C、style=D、effect=

考题 使用CSS声明一个关联样式选择器<style>div span{color:red}</style>,以下几种HTML元素中的内容可以为红色字体的是()。A、div内容/divB、divemspan内容/spanem/divC、span/div内容/div/spanD、以上都可以

考题 多选题为了给页面所有标题创建样式规则,指定将所有的标题显示为蓝色,字体显示为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样式表与HTML网页关联的方法的是()。A 在HTML文档的<!--...-->标签内定义CSS样式 B 用<link>标签链接外部的CSS样式表文件C 在HTML文档的<head></head>内定义CSS1样式:<style>...</style>D 用@import引入样式表文件

考题 单选题创建一个样式表,可以设置当前页面中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

考题 单选题下列代码使用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=redD p.style=red

考题 单选题js的以下操作中可以给div添加样式的是()。A div.style.color=redB div.style=redC div.color=redD div.style.color(red)