niusouti.com

以下代码片断中,属于绝对定位的是()。A、#box{width:100px;height:50px;position:absolute;}B、#box{width:100px;height:50px;position:static;}C、#box{width:100px;height:50px;position:relative;}D、#box{width:100px;height:50px;}

题目

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

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

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

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

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


相似考题
更多“以下代码片断中,属于绝对定位的是()。A、#box{width:100px;height:50px;position:absolute;}B、 ”相关问题
  • 第1题:

    下列HTML代码,实现左右固定,中间宽度自适应的三列布局的样式代码是 <div id="left">l</div> <div id="right">r</div> <div id="middle">m</div>

    A.#left {position:absolute;left:0px; top:0px; width:180px; height:500px; background-color:#FF0;} #middle{position:absolute;left:180px; top:0px; height:500px; background-color:#FF0000; margin:0px 180px;} #right {position:absolute; right:0px; top:0px; width:180px; height: 500px; background-color:#00CC00;}#B.#left {position:absolute;left:0px; top:0px; width:180px; height:500px; background-color:#FF0;} #middle {height:500px; background-color:
    #left { float:left; width:180px; height:500px; background:#FFFF00;} #right { float:right; width:180px; height:500px; background:#00CC00;} #middle {margin: 0 180px; background:#FF0000; height:500px;}

  • 第2题:

    在网页中有一个id为content的div,设置它的宽度为200像素,高度为100像素,并且向左浮动, 以下选项正确的是?

    A.#content{width:200px;height:100px;float:left;}

    B.#content{width:100px;height:200px;clear:left;}

    C.#content{width:200px;height:100;clear:left;}

    D.#content{width:100px;height:200px;float:left;}


    三列布局

  • 第3题:

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

    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;}


    Box{width:100px: height:50px: position: absolute;} Box{width:100px: height:50px: position: absolute;} Box{width:100px: height:50px: position: absolute;}

  • 第4题:

    【多选题】如果把div设置成怪异盒子模型,box-sizing:border-box,则div 的宽度为 <div style="width:100px;height="100px;border:10px;padding:10px;"></div>

    A.60px

    B.100px

    C.140px

    D.120px


    60px

  • 第5题:

    下面哪两个 css 设置,可以让元素脱离文档流()

    A.浮动(float)和 绝对定位(position:absolute)

    B.相对定位(position:relative)和 绝对定位(position:absolute)

    C.固定定位(position:fixed)和相对定位(position:relative)

    D.浮动(float)和相对定位(position:relative)


    浮动(float)和 绝对定位(position:absolute)