一个DIV位于另一个div的右下角

<style type="text/css">
.main{
width:500px;
border:#000 solid 1px;
height:500px;
position:relative;}

.tab{
cursor: pointer;
display: inline-block;
height: 22px;
vertical-align: bottom;
bottom: 5px;
position: absolute;
right:5px;
}
</style>

<div class="main">
<div class="tab">ddds</div>
</div>

posted @ 2012-09-08 09:53  oftenlin  阅读(2857)  评论(0编辑  收藏  举报