• 2022-06-04
    ‏阅读下面HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是()。​‏[div id="box"]​[div id="tabs"]​‏ ​‏​
    A: tabs{ position:absolute; right:0; bottom:0;}
    B: tabs{ position:relative; right:0; bottom:0;}
    C: box{ position:relative;}
    D: tabs {position:absolute; right:0; bottom:0;}
    E: box{ position:relative; }
    F: tabs { position:right bottom;}
  • C,D

    举一反三

    内容

    • 0

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

    • 1

      ​在以下代码片段中,属于绝对定位的是()。‏ 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;}

    • 2

      ​在以下代码片段中,属于绝对定位的是()。‏ 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;}

    • 3

      下列样式代码中,可以实现绝对定位模式的是()。A、position:static;B、position:fixed;C、position:absolute;position:relative A: position:static; B: position:fixed; C: position:absolute; D: position:relative;

    • 4

      下面哪个属性不会让div元素脱离文档流? A: float:left; B: position:absolute; C: position:fixed; D: position:relative;