参考答案和解析
正确答案:A,B
更多“应用下列哪些CSS属性后,会导致浏览器触发重排?()A、{width:100px;}B、{display:none;}C、{transform:translate(100px,100px);}D、{color:red;}”相关问题
  • 第1题:

    以下CSS选择符定义中,______属于类选择符。

    A.P{color:red; font-size:12pt}
    B.p.blue{color:blue}
    C.#Red{color:red;)
    D.PEM {background: yellow}

    答案:B
    解析:
    本题考查CSS的基础知识。CSS(Cascading Style Sheets,层叠样式表,简称为样式表)是用于(增强)控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。在CSS基本语法结构中,样式表的结构为:选择符{属性1:值1;属性2:值2;…}其中,选择符有如下几种形式:(1)HTML标记。任何HTML标记都可以是一个CSS的选择符,如P{color:red;font-size:12pt}。(2)类选择符。一个选择符能有不同的CLASS(类),因而允许同一元素有不同的样式。格式如下:标记名:类名{属性1:值1;属性2:值2;…}(3)ID选择符。ID选择符个别地定义每个元素的成分。这种选择符应该尽量少用,因为它具有一定的局限。一个ID选择符的指定要有指示符“#”在名字前面。(4)关联选择符。关联选择符是用空格隔开的两个或更多的单一选择符组成的字符串。这些选择符可以指定一般属性,而且因为层叠顺序的规则,它们的优先权比单一的选择符大。

  • 第2题:

    CSS中要隐藏一个元素,下列正确的是?()

    • A、display:inline-block;
    • B、display:inline;
    • C、display:none;
    • D、display:inherit;

    正确答案:C

  • 第3题:

    jquery中获取css样式颜色值下列说法错误的是()。

    • A、.css("color")
    • B、.css("color","red")
    • C、.addClass()
    • D、.attrClass()

    正确答案:B,C,D

  • 第4题:

    在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示:< P class=“firstp”>这是一个段落< /P> 下面选项中,()正确定义了上面代码引用的样式规则。

    • A、<style type="text/css">P{color:red}</style> 
    • B、<style type="text/css">#firstp {color:red} </style> 
    • C、<style type="text/css"> .firstp{color:red} </style> 
    • D、<style type="text/css">P.firstp{color:red}</style>

    正确答案:C

  • 第5题:

    以下哪一种规格图片符合店铺推广的要求()

    • A、400*400px
    • B、400*300px
    • C、400*200px
    • D、400*100px

    正确答案:A

  • 第6题:

    下列关于段落css属性代码书写不正确的是()。

    • A、p{line-height:24px;text-align:middle;}
    • B、p{line-height:20px;text-align:center;}
    • C、p{line-height:24px;text-align:top;}
    • D、p{line-height:24px;align:100px;}

    正确答案:A,C,D

  • 第7题:

    下列哪些是可继承的CSS属性?()

    • A、border
    • B、visibility
    • C、font
    • D、color

    正确答案:B,C,D

  • 第8题:

    下列代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id=”firstp”>这是一个段落</P>,下面选项中,()正确定义了上面代码引用的样式规则。

    • A、<Style Type=”text/css”> P {color:red} </Style>
    • B、<Style Type=”text/css”> #firstp {color:red} </Style>
    • C、<Style Type=”text/css”> .firstp {color:red} </Style>
    • D、<Style Type=”text/css”> P.firstp {color:red} </Style>

    正确答案:B

  • 第9题:

    以下选项中哪个是给p标签添加颜色的jQuery语法()。

    • A、$("p").css("color","red")
    • B、p.css("color","red")
    • C、p.style.color="red"
    • D、p.style="red"

    正确答案:A

  • 第10题:

    单选题
    下列代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id=”firstp”>这是一个段落</P>,下面选项中,()正确定义了上面代码引用的样式规则。
    A

    <Style Type=”text/css”> P {color:red} </Style>

    B

    <Style Type=”text/css”> #firstp {color:red} </Style>

    C

    <Style Type=”text/css”> .firstp {color:red} </Style>

    D

    <Style Type=”text/css”> P.firstp {color:red} </Style>


    正确答案: A
    解析: 暂无解析

  • 第11题:

    多选题
    jquery中获取css样式颜色值下列说法错误的是()。
    A

    .css(color)

    B

    .css(color,red)

    C

    .addClass()

    D

    .attrClass()


    正确答案: B,D
    解析: 暂无解析

  • 第12题:

    单选题
    以下选项中哪个是给p标签添加颜色的jQuery语法()。
    A

    $(p).css(color,red)

    B

    p.css(color,red)

    C

    p.style.color=red

    D

    p.style=red


    正确答案: A
    解析: 暂无解析

  • 第13题:

    display属性值的取值不包括下列哪些?()

    • A、hidden
    • B、inline
    • C、block
    • D、none

    正确答案:A

  • 第14题:

    下列哪个CSS语法是正确的?()

    • A、body.color=red
    • B、{body.color=red}
    • C、{body:color=red}
    • D、body{color:red}

    正确答案:D

  • 第15题:

    css样式中可以将标签变为行内块的是()。

    • A、display:block
    • B、display:inline
    • C、inline-block
    • D、display:none

    正确答案:C

  • 第16题:

    hr语法格式正确的是()。

    • A、〈hrwidth="500"color="red"align="center"/〉
    • B、〈hr〉〈/hr〉
    • C、〈hrsize="1"color="red"width="400"/〉
    • D、〈hralign="top"/〉

    正确答案:A,C

  • 第17题:

    border-color:red;border-style:solid;border-width:3px;可以简写为()。

    • A、border-color:red solid 3px
    • B、border-style:red solid 3px
    • C、border-width:red solid 3px
    • D、border:red solid 3px

    正确答案:D

  • 第18题:

    下面哪个选项不符合样式表的基本语法规则 ?()

    • A、 h2{color:red;font-size:14px;}
    • B、 h1#blue{color:blue;}
    • C、 message [ PADDING-RIGHT: 0px; DISPLAY: none; PADDING-LEFT: 0px;]
    • D、 a:link {color: #FF3366;font-family: "宋体";text-decoration: none;}

    正确答案:C

  • 第19题:

    以下定位,脱离文档流的是()。

    • A、#box{width:100px ;height:50px;}
    • B、#box{width:100px ;height:50px; postion:absolute}
    • C、#box{width:100px ;height:50px; postion:relative}
    • D、#box{width:100px ;height:50px; position:static}

    正确答案:B

  • 第20题:

    以下代码片断中,属于绝对定位的是()。

    • A、#box{width:100px;height:50px;}
    • B、#box{width:100px;height:50px; position:absolute;}
    • C、#box{width:100px;height:50px; position:static;}
    • D、#box{width:100px;height:50px; position:relative;}

    正确答案:B

  • 第21题:

    以下代码片断中,属于静态定位的是()。

    • A、#bb{width:100px;position:relative}
    • B、#bb{width:100px;position:static}
    • C、#bb{width:100px;}
    • D、#bb{width:100px;position:absolute}

    正确答案:B

  • 第22题:

    单选题
    以下代码片断中,属于绝对定位的是()。
    A

    #box{width:100px;height:50px;}

    B

    #box{width:100px;height:50px; position:absolute;}

    C

    #box{width:100px;height:50px; position:static;}

    D

    #box{width:100px;height:50px; position:relative;}


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    以下代码片断中,属于静态定位的是()。
    A

    #bb{width:100px;position:relative}

    B

    #bb{width:100px;position:static}

    C

    #bb{width:100px;}

    D

    #bb{width:100px;position:absolute}


    正确答案: A
    解析: 暂无解析