首页 > 其他 > 详细

[转]div内容底部对齐

时间:2014-01-16 20:42:32      阅读:343      评论:0      收藏:0      [点我收藏+]

本文转自:http://blog.csdn.net/hellomy/article/details/5889833

bubuko.com,布布扣
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>CSS实现文字底部对齐</title> 
<style type="text/css"> 
#txt{
 height:246px; 
 width:512px; 
 border:1px solid #000000; 
 position:relative  

} 
#txt span{ 
 position:absolute; 
 bottom:10px; 
 padding:0px; 
 margin:0px 
} 
</style> 
</head>  
<body> 
<div id="txt"> 
<span><a href="#" target="_blank">网页特效ggg</a></span> 
</div> 
</body> 
</html> 
bubuko.com,布布扣

 

<div style=" position:absolute; bottom:15px; right:15px; "></div>

[转]div内容底部对齐

原文:http://www.cnblogs.com/freeliver54/p/3518642.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!