转自:http://blog.sina.com.cn/s/blog_92d6237201016jhs.html
简单的一个需求, 映射着常常被忽略的知识啊。
上次面试没写出来,得学习。
·思路及要点:
父div的位置设置成相对的,即“position: relative;”。
而子div的位置设置成绝对的,并且下边缘设为0,即“position: absolute; bottom: 0;”。
<head>
</head>
<body>
</body>
</html>
·理论简介