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

创建一个样式表,可以设置当前页面中ID为compact元素的内容的字体为斜体.下列能实现该功能的代码是()

  • A、<STYLE TYPE="text/css"> compact{font-style:italic;}</STYLE>
  • B、<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>

相关考题:

●在网页中使用链接样式文件“css_ file.css”的正确语句是(61)。(61) A.include rel=stylesheet type=”text/css'’ href=”css_file.css”B.link rel=stylesheet type=”text/css” href=”css_file.css'’C.import rel=stylesheet type=”text/css”href=”css_file.css”D.use rel=stylesheet type=”text/css” href=”css_file.css”

如果想导入一个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" /〉

下列哪个CSS属性可以更改字体大小()。A.text-sizeB.font-sizeC.text-styleD.font-style

请根据网页显示的效果图(如图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文件使用样式表

在网页中使用链接样式文件“css_file.css”的正确语句是______。A.<include rel=stylesheet type="text/css"href="css_file.css">B.<link rel=stylesheet type="text/css"href="css_file.css">C.<import rel=stylesheet type="text/css"href="css_file.css">D.<use rel=stylesheet type="text/css"href="css_file.css">

在网页编程中,某站点下有一个名为index.htm的页面和一个名为a.css的样式表文件(index.htm和a.css在同一个目录下),如果要在index.htm页面中应用a.css样式表文件中的样式表,则应在index.htm页面的标签中添加以下哪段代码()A、link type="text/css" rel="stylesheet" file="a.css" B、a type="text/css" rel="stylesheet" href="a.css" C、link type="text/css" rel="stylesheet" href="a.css" D、link type="text/css" rel="stylesheet" src="a.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"

在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中,哪个是正确引用外部样式表的方法?()A、style src="mystyle.css"B、link rel="stylesheet" type="text/css" href="mystyle.css"C、stylesheetmystyle.css/stylesheet

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

以下哪一个CSS属性不属于W3C的CSS2规范?()A、list-style-positionB、min-heightC、floatD、text-overflow

下列哪个css属性可以更改字体大小()A、text-sizeB、font-sizeC、text-styleD、font-style

用来设置文字倾斜的语法正确的是()。A、font-weight:blod;B、font-style:italic;C、text-align:left;D、font-family:"MicrosoftYaHei";

CSS属性font-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>

在HTML文件中导入一个样式表的正确语法为()。A、link href="css/css1.css" rel="stylesheet" type="text/css"B、input href="css/css1.css" rel="stylesheet" type="text/css"C、import href="css/css1.css" rel="stylesheet" type="text/css"D、link src="css/css1.css" rel="stylesheet" type="text/css"

以下的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”

若要在网页中插入样式表main.css,以下用法中,正确的是()。A、Linkhref=”main.css”type=text/cssrel=stylesheetB、LinkSrc=”main.css”type=text/cssrel=stylesheetC、Linkhref=”main.css”type=text/cssD、Includehref=”main.css”type=text/cssrel=stylesheet

单选题创建一个样式,可以设置当前页面中ID为compact元素的内容的字体为斜体.下列能实现该功能的代码是()。Acompact{font-style:italic;}B@compact{font-style:italic;}C.compact{font-style:italic;}D#compact{font-style:italic;}

多选题为了给页面所有标题创建样式规则,指定将所有的标题显示为蓝色,字体显示为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

单选题创建一个样式表,可以设置当前页面中ID为compact元素的内容的字体为斜体。下列能实现该功能的代码是()。ASTYLE TYPE=“text/css”compact{font-style:italic;}/STYLEBSTYLE TYPE=“text/css”@compact{font-style:italic;}/STYLECSTYLE TYPE=“text/css”.compact{text-style:italic;}/STYLEDSTYLE TYPE=“text/css”#compact{font-style:italic;}/STYLE

单选题在HTML文件中导入一个样式表的正确语法为()。Alink href=css/css1.css rel=stylesheet type=text/cssBinput href=css/css1.css rel=stylesheet type=text/cssCimport href=css/css1.css rel=stylesheet type=text/cssDlink src=css/css1.css rel=stylesheet type=text/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>

多选题下列能够正确在一个htm页面中导入在同一目录下的“StyleSheet1.css”样式表的是()。Astyle@importStyleSheet1.css;/styleBlink rel=”stylesheet”type=”text/css”href=”StyleSheet1.css”Clink rel=”StyleSheet1.css”type=”text/css”Dlink rel=”stylesheet”type=”text/javascript”href=”../htm/StyleSheet1.css”