1、
父元素设置:
position:relative;
子元素设置:
position:absolute;
bottom:0;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
.box {
text-align: center;
height: 300px;
width: 300px;
border: 1px solid #333333;
position: relative
}
.box p {
display:inline-block;
position: absolute;
bottom: 0px;
/*padding: 0px;*/
margin: 0px
}
</style>
</head>
<body>
<div class="box">
<p>aadsad</p>
</div>
</body>
</html>