好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

将子div定位于父div的右下角的代码实例_html/css_WEB-ITnose

将子div定位于父div的右下角的代码实例:
可能在实际应用中,很少有这样的设置,这里分享这段代码的目的是为了让初学者熟悉一下关于定位的应用。
代码如下:

      蚂蚁部落  #father{  width:600px;  height:600px;  background:green;  position:relative}#father #children{  width:200px;  height:200px;  background:red;  position:absolute;  right:0;  bottom:0}   

蚂蚁部落

查看更多关于将子div定位于父div的右下角的代码实例_html/css_WEB-ITnose的详细内容...

  阅读:34次