【多选题】【消耗次数:1】
在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示: 这是一个段落下面选项中, 下列选项中正确定义了该段落元素样式规则的有( )
P{color:red}
#firstp{color:red}
.firstp{color:red}
P.{color:red}
参考答案:
复制
纠错
相关题目
【多选题】 在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示: P class=firstp这是一个段落下面选项中, 下列选项中正确定义了该段落元素样式规则的有( )
①  sytle type=text/cssP{color:red}/sytle
②  sytle type=text/css#firstp{color:red}/sytle
③  sytle type=text/css.firstp{color:red}/sytle
④  sytle type=text/cssP.{color:red}/sytle
【多选题】 在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示: Pclass=”firstp”这是一个段落下面选项中, 下列选项中正确定义了该段落元素样式规则的有( )
①  sytletype=”text/css”P{color:red}/sytle
②  sytletype=”text/css”#firstp{color:red}/sytle
③  sytletype=”text/css”.firstp{color:red}/sytle
④  sytletype=”text/css”P.{color:red}/sytle
【单选题】 样式表定义:#title{color:red}表示( )
①  网页中的标题是红色的
②  网页中某一个id为title的元素中的内容是红色的
③  网页中元素名为title的内容是红色的
④  以上任意一个都可以
【单选题】 样式表定义#title?{color:red}表示(???)。
①  网页中的标题是红色的
②  网页中某一个id为title的元素中的内容是红色的
③  网页中元素名为title的内容是红色的
④  以上任意一个都可以
【单选题】 利用XSL创建一style属性,style的值为“color:bule;background-color:red”,能实现该功能的选项为()。
①  attributename="color"blue/attributeattributename="background-color"red/attribute
②  attributename="style"color:blue/attributeattributename="style"background-color:red/attribute
③  attributename="style"color:blue;background-color:red/attribute
④  elementattribute="style"color:blue;background-color:red/element
【判断题】 hr?color=red 表示页面顶部是红色。
①  正确
②  错误
【判断题】 CSS中的color属性用于设置HTML元素的背景颜色。
①  正确
②  错误
【单选题】 阅读下面的HTML代码,其段落标签内文本最终显示的颜色是(????)。 style?type=text/css? body?{?color:#333;?}? #text{?color:#f00;?}? .content?{?color:#00f;?}? .gray?{?color:#666;?}? /style ?......? p?id=text?class=content?gray谁知盘中餐,粒粒皆辛苦 ?......
①  #f00
②  #00f
③  #666
④  #333
【单选题】 阅读下面的HTML代码,其段落标签内文本最终显示的颜色是(????)。style?type=text/css? body?{?color:#333;?}? #text{?color:#f00;?}? .content?{?color:#00f;?}? .gray?{?color:#666;?}?/style ?......?p?id=text?class=content?gray谁知盘中餐,粒粒皆辛苦......
①  #f00
②  #00f
③  #666
④  #333
【单选题】 如下所示的这段CSS样式代码,定义的样式效果是( )。a:link {color: #ff0000;} a:visited {color: #00ff00;}a:hover {color: #0000ff;}a:active {color: #000000;}其中#ff0000为红色,#00000为黑色,#0000ff为蓝色, #00ff00为绿色
①  A. 默认链接色是绿色,访问过链接是蓝色,鼠标上滚链接是黑色,活动链接是红色
②  B. 默认链接色是蓝色,访问过链接是黑色,鼠标上滚链接是红色,活动链接是绿色
③  C. 默认链接色是红色,访问过链接是绿色,鼠标上滚链接是蓝色,活动链接是黑色
④  D. 默认链接色是黑色,访问过链接是红色,鼠标上滚链接是绿色,活动链接是蓝色
随机题目
【单选题】 This bright girl______ the truth in front of the enemy.
①  didn’t say
②  couldn’t speak to
③  said
④  didn’t tell
【单选题】 ________the front door________,he had to enter the room through the back door.
①  Seen;painted
②  Seeing;painted
③  Being seen;being painted
④  Seeing;being painted
【单选题】 This book is_____that one. But______than that one.
①  as difficult as ;expensive
②  as more difficult as ; more expensive
③  as difficult as ; more expensive
④  more difficult as ; as expensive
【单选题】 It was his fault,but he put the blame on others—thats _______ we cant agree.
①  where
②  what
③  how
④  which
【单选题】 It was said that his father_______ .
①  has died
②  died
③  has been dead
④  had died
【单选题】 I was told yesterday that the company__________me to Rome next week for a business conference.
①  should have sent
②  was going to send
③  should be sending
④  should send
【单选题】 Whenwespeaktopeople,weshouldbe_______.
①  aspoliteaspossible
②  aspoliteaspossibly
③  aspolitelyaspossible
④  aspolitelyaspossibly
【单选题】 When he came to,he found himself________on a chair,with his hands________back.
①  to sit;tying
②  sitting;tying
③  seating;tied
④  seated;tied
【单选题】 Where is my pen? I________it.
①  might lose
②  would have lost
③  should have lost
④  must have lost
【单选题】 I will ________here till you give me some money.
①  leave
②  not leave
③  come
④  return