【单选题】【消耗次数:1】
CSS样式,id选择器使用HTML元素的id属性,用下面哪一个来定义?*
{}
.
id
#
参考答案:
复制
纠错
相关题目
【单选题】 CSS样式,id选择器使用HTML元素的id属性,用下面哪一个来定义?
①  $
②  .
③  *
④  #
【单选题】 下面哪个运用了ID选择器( )
①  a{color:red;}
②  .red{color:red;}
③  #red{color:red;}
④  [att=red]{color:red;}
【单选题】 ID选择器以什么开头?
①  !
②  %
③  #
④  .
【判断题】 css样式优先级最高的是id样式( )。
①  正确
②  错误
【单选题】 阅读下面的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;}
【单选题】 阅读下面的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为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;
【单选题】 页面中有一个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;
【单选题】 如果一个元素外层套用了HTML样式,内层套用了CSS样式,在起作用的是____。
①  两种样式的混合效果
②  冲突,不能同时套用
③  CSS样式
④  HTML样式
【单选题】 关于class和id使用方法,正确的是( )
①  同一个元素可以使用多个class,但id不行。
②  class有缺省的浏览器参数,id没有
③  同一个元素可以使用多个id,但class不行。
④  id有缺省的浏览器参数,class没有
随机题目
【判断题】 无效劳动合同,从订立时起就没有法律约束力
①  正确
②  错误
【判断题】 一个国家的现行法律规范分为若干个法律部门,由这些法律部门组成的具有内在联系的、互相协调的统一整体构成一国的法律体系。
①  正确
②  错误
【判断题】 因重大误解而为的民事行为属于无效民事行为。
①  正确
②  错误
【判断题】 房产税以在征税范围内的房屋产权所有人为纳税人,产权未确定的暂不缴纳。
①  正确
②  错误
【判断题】 可撤销的民事行为自撤销事由发生之日起1年内当事人未撤销的,撤销权消灭
①  正确
②  错误
【判断题】 专用作业车按整备质量每吨为车船税计税依据。
①  正确
②  错误
【判断题】 征税的基本目的是满足国家的财政需要,以实现其进行阶级统治和满足社会公共需要的职能
①  正确
②  错误
【判断题】 用人单位与劳动者在用工前订立劳动合同的,劳动关系自劳动合同订立之日起建立
①  正确
②  错误
【判断题】 企业职工在医疗期内,其病假工资或疾病救济费可以低于当地最低工资标准支付,但最低不能低于最低工资标准的 80%
①  正确
②  错误
【判断题】 市甲企业委托b市乙企业加工一批应税消费品,该批消费品应缴税款应由乙企业向b市税务机关缴纳
①  正确
②  错误