0
我想根據文本所在的框對齊我的文本。看看下面的html代碼。相對於框的文本對齊
Html:
<div class="box">
<div class="cont">
Hello World!!!
</div>
</div>
現在這裏是它的CSS代碼
CSS:
.box
{
height:200px;
width:200px;
border:1px dashed red;
}
.cont
{
border:1px solid green;
position:fixed;
right:0px;
width:55px;
}
但是,當我把它固定它只是向頁面的右上角移動,同時我希望它移動到盒子的角落。提前致謝。
謝謝,幫助我很多... – 2012-08-02 06:06:25