手写的div层,与布局所用的div有何区别?(本人在利用setTimeout动态随机产生一个图片坐标时,用手写的div图片根本动不了,而使用div布局,则很容易得到?请问这是怎么回事?)

解决方案 »

  1.   

    手写的div层?? <div style="position::absolute;"></div>
      

  2.   

    Up,支持一楼,还有可能需要设置DIV为最顶层
      

  3.   

    DIV设置顶层,先在层上写一点内容看是否真的不能动
      

  4.   

    画的position属性为absolute
    手写的不指定position的值为absolute,缺省值为,,,,,忘了,只有值为absolute的时候才可以
      

  5.   

    static Default. Object has no special positioning; it follows the layout rules of HTML. 
    absolute Object is positioned relative to parent element's position—or to the body object if its parent element is not positioned—using the top and left properties. 
    relative Object is positioned according to the normal flow, and then offset by the top and left properties.