以下代码片断中,属于相对定位的是()。
A:
B: {width:100px;position:relative}
C:
D: {width:100px;position:sastic}
E:
F: {width:100px;}
G:
H: {width:100px;position:absolute}
A:
B: {width:100px;position:relative}
C:
D: {width:100px;position:sastic}
E:
F: {width:100px;}
G:
H: {width:100px;position:absolute}
举一反三
- 以下代码片断中,属于绝对定位的是( )。 A: B: ox{width:100px;height:50px;} C: D: ox{width:100px;height:50px;position:absolute;} E: F: ox{width:100px;height:50px; position:static;} G: H: ox{width:100px;height:50px; position:relative;}
- 在以下代码片段中,属于绝对定位的是() 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;}
- 在以下代码片段中,属于绝对定位的是()。 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;}
- 代码div{width:100px;height:100px;}表示( )?
- 判断以下代码中如何设置div1的样式,可以使div1相对于浏览器,(相对于以前位置右上角)向左移动100px,向下移动50px。[style type="text/css"]*{ margin:0; padding:0;}.div1{ width:200px; height:200px; border:2px red solid; }[/][body][div class="div1"] [/] A: position:absolute; right:100px; top:50px; B: position:absolute; left:100px; top:50px; C: position:relative; right:100px; top:50px; D: position:relative; left:100px; top:50px;