【单选题】【消耗次数: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中定义能多次引用样式的选择器是超链接选择器( )。
①  正确
②  错误
随机题目
【单选题】 下列哪项不属于装配约束(  )。
①  (A) 对齐
②  中点
③  匹配
④  插入
【单选题】 下面关于使用拉伸工具生成第一个实体特征时,拉伸截面说确的是( )。
①  截面可以开放
②  截面可以出现出头的线条
③  截面的线条可以重合
④  截面必须闭和、不出现重合线条,线条不出头
【单选题】 使用尺寸方式创建环行阵列时,导引尺寸为( )。
①  角度
②  直径
③  半径
④  线性尺寸
【单选题】 边界混合可以生成( )。
①  曲面
②  薄板
③  实体
④  曲线
【多选题】 明中期重要散文流派有“唐宋派”。他们自觉地倡导唐宋古文,主要成员有( )等人。
①  王慎中
②  唐顺之
③  茅坤
④  归有光
【单选题】 ( )的代表作《狱中杂记》、《左忠毅公逸事》。
①  方苞
②  魏禧
③  姚鼐
④  刘大櫆
【单选题】 ( )的代表作是《登泰山记》、《快雨亭记》。
①  方苞
②  姚鼐
③  刘大櫆
④  顾炎武
【单选题】 北宋诗文革新的领袖人物是( )。
①  晏殊
②  晏几道
③  欧阳修
④  苏轼
【判断题】 施蛰存的第一个短篇集《上元灯》中的多数作品主要是怀旧,在淡淡的感伤中又蕴含着浪漫的诗意。
①  正确
②  错误
【单选题】 《名优之死》的作者是( )。
①  丁西林
②  洪深
③  欧阳予倩
④  田汉