【单选题】【消耗次数:1】
下面的CSS代码运行效果是( )p{color:#f00}font{background:#f00}
所有p和font标签背景色为红色
所有p和font标签字体颜色为红色
p标签的字体颜色为红色,font标签的背景色为红色
p标签的字体背景色为红色,font标签的颜色为红色
参考答案:
复制
纠错
相关题目
【单选题】 下面的CSS代码运行效果是( ) p{color:#f00} font{background:#f00}
①  所有p和font标签背景色为红色
②  所有p和font标签字体颜色为红色
③  p标签的字体颜色为红色,font标签的背景色为红色
④  p标签的字体背景色为红色,font标签的颜色为红色
【简答题】 在网页中设置所有h1标签的字体样式为:宋体,20像素,红色;补全下面代码。 h1{ font-family:宋体; color:[填空] [填空]:20px; }
【单选题】 在Photoshop中将前景色和背景色恢复为默认颜色的快捷键是:
①  D
②  X
③  Tab
④  Alt
【单选题】 在Photoshop中,( )工具可以用来擦除指定的颜色,指定的颜色显示为背景色。
①  魔术橡皮擦
②  橡皮擦
③  涂抹工具
④  背景色橡皮擦
【单选题】 下列样式定义字体为宋体、字体颜色为红色、斜体、大小20px、粗细800号,正确的定义是:()
①  .p {font-family:宋体;font-size:20px;font-weight:800;color:red; font-style:italic; }
②  .p {font-family:20px; font-size:宋体; font-weight:800; color: red; font-style:italic; }
③  .p {font-family:20px; font-size:800; font-weight:宋体; color:red; font-style:italic; }
④  .p{font-family:800; font-size:20px; font-weight:red; color:italic; font-style:宋体;}
【单选题】 下列样式定义字体为宋体、字体颜色为红色、斜体、大小20px、粗细800号,正确的定义是:( )
①  p{font-family:宋体;font-size:20px;font-weight:800;color:red;font-style:italic;}
②  p{font-family:20px;font-size:宋体;font-weight:800;color:red;font-style:italic;}
③  p{font-family:20px;font-size:800;font-weight:宋体;color:red;font-style:italic;}
④  p{font-family:800;font-size:20px;font-weight:red;color:italic;font-style:宋体;}
【单选题】 怎样给所有的标签添加背景颜色?( )
①  .h1{background-color:#FFFFFF}
②  h1{background-color:#FFFFFF;}
③  h1.all{background-color:#FFFFFF}
④  #h1{background-color:#FFFFFF}
【单选题】 阅读下面的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中,设置元素内容的字体颜色用"font-color"属性。
①  正确
②  错误
随机题目
【简答题】 Direction: Fill in the blanks with the phrases given below. Change the form if necessary.[collide with; take hold of; for a moment; head for; ever since; be full of; share with; make fun of]5.[填空1]your end of the stick, and well pull you up.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[hug; flatten; ancestor; amazing; solemnly; comfort; awful; desperately; uproot; cousin]5.[填空1]him, for he is sad.
【简答题】 Direction: Fill in the blanks with the phrases given below. Change the form if necessary.[have access to; go off; desperate for; put up with; always the case; give advice; concentrate on; arrive at; make an effort; come in handy]4. A few minutes later the bomb[填空1]destroying the vehicle.
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[chore; talent; crowded; earnings; finance; festive; memorable; sacrifice; smash; reproduction]7. The veteran soldier has fought many[填空1]battles.
【简答题】 《论十大关系》提出的繁荣社会主义科学文化建设方针是百花齐放、[填空]。
【简答题】 [填空]年社会主义改造基本完成。
【简答题】 简述冯至小说《伍子胥》的艺术价值。
【简答题】 简述曹禺戏剧《雷雨》中蘩漪的形象特征。
【简答题】 近代刘鹗的[填空]属于谴责小说。
【简答题】 冰心早期小说关注婚姻家庭、个性解放等问题,是五四[填空]的代表作家之一。