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

    内容

    • 0

      关于jQuery中自定义动画方法animate()的使用方法,正确的是(): $("div").animate("width","100px")|$("div").animate(400,{"width":"100px","height":"100px"})|$("div").animate({"height":"+=50px"})|$("div").animate({"height":"500px";"width":"500px"})

    • 1

      第一个DIV的样式style为width:150px;height:50px;margin:5px 7px 2px 3px;padding:5px;border:1px solid #000;第二个DIV的样式style为width:150px;height:50px;margin:0;padding:0;border:1px solid #000;请问第一个DIV的实际宽度为________px,原点坐标为x=_____px,y=______px;第二个DIV的原点坐标为x=_____px,y=______px原点为盒子模型可见区域的左上角定点

    • 2

      以下代码片断中,属于相对定位的是()。 A: B: {width:100px;position:relative} C: D: {width:100px;position:sastic} E: F: {width:100px;} G: H: {width:100px;position:absolute}

    • 3

      判断以下代码中如何设置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;

    • 4

      关于jQuery中自定义动画方法animate()的使用方法,正确的是 A: $("div").animate(400,{"width":"100px","height":"100px"}) B: $("div").animate("width",100px") C: $("div").animate({"height":"500px","width":"500px"}) D: $("div").animate({"height":"+=50px"})