我正在尝试这样做,
当仅具有单行“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”图标现在位于“新”字下方
我想喜欢这个,所有文字都应该在左侧,图标在右侧
This is test to test this second line this is
third line this is fourth line this is fifth
line new line x