有同学问:
<div class="1">
<div class="2">XXXX</div>
</div>
我想要div2在div1靠底部显示,这里两个属性要怎么写??
答案:
#CSS
.1 {position:relative;}
.2 {position:absolute;left;0;bottom:0;}
#HTML
<div class="1">
<div class
有同学问:
<div class="1">
<div class="2">XXXX</div>
</div>
我想要div2在div1靠底部显示,这里两个属性要怎么写??
答案:
#CSS
.1 {position:relative;}
.2 {position:absolute;left;0;bottom:0;}
#HTML
<div class="1">
<div class