【单选题】【消耗次数:1】
CSS样式,id选择器使用HTML元素的id属性,用下面哪一个来定义?
$
.
*
#
参考答案:
复制
纠错
相关题目
【单选题】 CSS样式,id选择器使用HTML元素的id属性,用下面哪一个来定义?*
①  {}
②  .
③  id
④  #
【单选题】 下面哪个运用了ID选择器( )
①  a{color:red;}
②  .red{color:red;}
③  #red{color:red;}
④  [att=red]{color:red;}
【单选题】 页面中有一个id为price的层,并且有一个id选择器price用来设置层price的样式,在IE浏览器中运行此页面,下面( )能正确获取层的背景颜色。(选择一项)
①  document.getElementById(price).currentStyle.backgroundColor
②  document.getElementById(price).currentStyle.background-color
③  document.getElementById(price).style.backgroundColor
④  var divObj=document.getElementById(pricedocument.defaultView.getComputedStyle(divObj,null).background;
【单选题】 页面中有一个id为price的层,并且有一个id选择器price用来设置层price的样式,在IE浏览器中运行此页面,下面( )能正确获取层的背景颜色。
①  document.getElementById(price).currentStyle.backgroundColor
②  document.getElementById(price).currentStyle.background-color
③  document.getElementById(price).style.backgroundColor
④  var divObj=document.getElementById(price);document.defaultView.getComputedStyle(divObj,null).background;
【单选题】 如果一个元素外层套用了HTML样式,内层套用了CSS样式,在起作用的是____。
①  两种样式的混合效果
②  冲突,不能同时套用
③  CSS样式
④  HTML样式
【单选题】 阅读下面的HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是(????)。? div?id=boxdiv?id=tabs/div/div
①  #tabs{position:absolute;right:0;bottom:0;}
②  #tabs{position:relative;right:0;bottom:0;}
③  #box{position:relative;}#tabs{position:absolute;right:0;bottom:0;}
④  #box{position:relative;}#tabs{position:rightbottom;}
【判断题】 css样式优先级最高的是id样式( )。
①  正确
②  错误
【单选题】 阅读下面的HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是(????)。?div?id=box div?id=tabs/div/div?
①  #tabs{position:absolute; right:0 ;bottom:0;}
②  #tabs{position:relative; right:0; bottom:0;}
③  #box{position:relative;}#tabs{position:absolute; right:0; bottom:0;}
④  #box{position:relative;}#tabs{position:right bottom;}
【单选题】 ID选择器以什么开头?
①  !
②  %
③  #
④  .
【判断题】 在CSS中定义能多次引用样式的选择器是超链接选择器( )。
①  正确
②  错误
随机题目
【单选题】 “文章合为时而著,歌诗合为事而作”是谁的主张?
①  杜甫
②  李白
③  白居易
④  元稹
【判断题】 122.“马上相逢无纸笔,凭君传语报平安”的作者是高适。
①  正确
②  错误
【判断题】 118.“葡萄美酒夜光杯,欲饮琵琶马上催”的作者是王之涣。
①  正确
②  错误
【判断题】 108.“初唐四杰”创作过边塞诗。
①  正确
②  错误
【判断题】 103.王昌龄是盛唐边塞诗的代表诗人
①  正确
②  错误
【判断题】 111.《西鄙人歌》歌颂的是哥舒翰。
①  正确
②  错误
【判断题】 112.杜甫的《兵车行》是边塞诗。
①  正确
②  错误
【判断题】 117.高适的《燕歌行》反映的是西北边塞的状况。
①  正确
②  错误
【判断题】 115.高适的边塞诗在风格上倾向于现实主义。
①  正确
②  错误
【判断题】 106.“忽如一夜春风来,千树万树梨花开”的作者是岑参。
①  正确
②  错误