我在VS中设置DIV的Top和Left,但是不能看到效果,运行后也不能看到效果,总是在最左上角.
这是怎么回事?
为什么用JS设置就可以呢?

解决方案 »

  1.   

    要使用float来处理,不能设left这些的.那就没意思了.
      

  2.   

    <div style="width:118px; height:100px; position:absolute; left: 105px; top: 340px;" >
    绝对定位绝对定位绝对定位
    </div>
      

  3.   

    legt 和 top是绝对定位我一般是用margin-top和margin-left来实现的  能适应不同的分辨率
      

  4.   

    还有 min-width:100px 怎么没效果?
      

  5.   

    min-width:100px  IE6及之前版本不支持...
      

  6.   

    如果要IE6也支持可以这样子写:width:auto !important;width:100px;min-width:100px; 
      

  7.   

    http://pic.daqi.com/editor/huandeng/ent_huandeng/2218260/1.html http://pic.daqi.com/editor/huandeng/ent_huandeng/2218260/1.html http://pic.daqi.com/editor/huandeng/ent_huandeng/2218260/1.html