可能在实际应用中,很少有这样的设置,这里分享这段代码的目的是为了让初学者熟悉一下关于定位的应用。
代码如下:
蚂蚁部落 #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的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did110451