我試圖做這樣的,CSS使ImageIcon的下移與文本
有當文本只有一行「x」圖標也在同一行,但有兩個或兩個以上的「X」圖標時,文本也想繼續前進。
1)
This is text to test x
2)
This is test to test
this is second line x
我試圖這樣,
css:
.leftalign {
float: left;
}
.rightalign{
float: right;
}
.mainWrap{
width: 100%;
}
.removeWrap {
width: 100%;
}
Html:
<div class="mainWrap">
<div class="title leftalign">
This is test to test
this is second line
<div class="removeWrap rightalign">
<a href="" class="CloxeIcon">x</a>
</div>
</div>
</div>
通過使用此我得到,
This is test to test this is second line this is
third line this is fourth line this is fifth line new
line x
問題是現在的 'X' 圖標下面的 '新' word
我想這樣的,所有文本應在左側和圖標右側
This is test to test this second line this is
third line this is fourth line this is fifth
line new line x
也許你想要這個:http://jsfiddle.net/V6H67/3/從底部的位置將等於字體大小。 –