<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CSS实现文字底部对齐</title>
<style>
#txt{
height:300px;
width:300px;
border:1px solid #333333;
position:relative
background-color: red;
}
#txt p{
position:absolute;
bottom:0px;
padding:0px;
margin:0px
}
</style>
</head>
<body>
<div id="txt">
<p><a href="http" target="_blank">IT</a></p>
</div>
</body>
</html>
转载于:https://www.cnblogs.com/caobiin/p/6802733.html