Html 包装时对齐图像图标后面的链接文本
我有一个链接,左边是链接图标,右边是箭头。我遇到的问题是,当链接文本换行时,它不能很好地证明其合理性。我如何实现类似于这里的东西,但是使用给定的标记Html 包装时对齐图像图标后面的链接文本,html,css,xhtml,Html,Css,Xhtml,我有一个链接,左边是链接图标,右边是箭头。我遇到的问题是,当链接文本换行时,它不能很好地证明其合理性。我如何实现类似于这里的东西,但是使用给定的标记 <div class="linkitem" id="myTools" style= "display:inline-block; padding:4px 0 4px 0; width:90%;"> <a href="{$ItemEditURL}" id="InlineEditLink" style= "cursor
<div class="linkitem" id="myTools" style=
"display:inline-block; padding:4px 0 4px 0; width:90%;">
<a href="{$ItemEditURL}" id="InlineEditLink" style=
"cursor: pointer; position:relative; top: 4px; margin-right:5px;"><img height="14"
src=
"https://maxcdn.icons8.com/Android_L/PNG/24/Programming/edit_property-24.png"
title="Edit" width="14"></a> <a href="{$SafeLinkUrl}" style=
"color: white !important!" target="_blank" title="{@LinkToolTip}">A
very long descriptive Link text goes here</a>
</div>
<div class="wrapperArrow" style="float:right; padding-top:5px;"><img alt=""
src=
"https://maxcdn.icons8.com/windows10/PNG/16/Arrows/double_right-16.png"></div><br>
<br><br><br><br><br><br><br>
<hr>
Free Icons provided by <a href="https://icons8.com">Icons8</a>
免费图标由
我的小提琴在这里。。。
以内联方式更新此代码以解决您的问题
<div class="linkitem" id="myTools" style=
"display:inline-block; padding:4px 0 4px 0; width:90%;">
<a href="{$ItemEditURL}" id="InlineEditLink" style=
"cursor: pointer;position: absolute;float:left;width:20px;"><img height="14"
src=
"https://maxcdn.icons8.com/Android_L/PNG/24/Programming/edit_property-24.png"
title="Edit" width="14"></a> <a href="{$SafeLinkUrl}" style=
"color: white !important!;float:left;margin-left: 20px;" target="_blank" title="{@LinkToolTip}">A
very long descriptive Link text goes here</a>
</div>
<div class="wrapperArrow" style="float:right; padding-top:5px;"><img alt=""
src=
"https://maxcdn.icons8.com/windows10/PNG/16/Arrows/double_right-16.png"></div><br>
<br><br><br><br><br><br><br>
<hr>
Free Icons provided by <a href="https://icons8.com">Icons8</a>
免费图标由
以内联方式更新此代码以解决您的问题
<div class="linkitem" id="myTools" style=
"display:inline-block; padding:4px 0 4px 0; width:90%;">
<a href="{$ItemEditURL}" id="InlineEditLink" style=
"cursor: pointer;position: absolute;float:left;width:20px;"><img height="14"
src=
"https://maxcdn.icons8.com/Android_L/PNG/24/Programming/edit_property-24.png"
title="Edit" width="14"></a> <a href="{$SafeLinkUrl}" style=
"color: white !important!;float:left;margin-left: 20px;" target="_blank" title="{@LinkToolTip}">A
very long descriptive Link text goes here</a>
</div>
<div class="wrapperArrow" style="float:right; padding-top:5px;"><img alt=""
src=
"https://maxcdn.icons8.com/windows10/PNG/16/Arrows/double_right-16.png"></div><br>
<br><br><br><br><br><br><br>
<hr>
Free Icons provided by <a href="https://icons8.com">Icons8</a>
免费图标由
您提供的样本之间有什么区别?调整大小时,主要区别显示在段落中。新行的起点位于第一小提琴图标之后,第二小提琴图标正下方。:)您提供的样本之间有什么区别?调整大小时,主要区别显示在段落上。新行的起点位于第一小提琴图标之后,第二小提琴图标正下方。:)请花点时间解释问题是什么,以及为什么您的解决方案有效。仅使用代码的答案通常没有用处,可能会被否决。请花时间解释问题所在以及您的解决方案工作的原因。只有代码的答案通常没有用处,可能会被否决。