子div在父div中置底
生活随笔
收集整理的這篇文章主要介紹了
子div在父div中置底
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
??? <title>子div在父div中置底</title>
??? <style type="text/css">
??????? .father { width: 500px; height: 600px; position: relative; background-color: AliceBlue; }
??????? .child { width: 100%; height: 100px; position: absolute; bottom: 0; background-color: AntiqueWhite; }
??? </style>
</head>
<body>
??? <div class="father">
??????? <div class="child">
??????? </div>
??? </div>
</body>
</html>
總結(jié)
以上是生活随笔為你收集整理的子div在父div中置底的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 今天的虎兄才跳了过去的飞秋WZ132
- 下一篇: c实现assert