我想在 span 元素的右侧对齐图像。
我在 td 元素中可以正常工作,但是现在我已经将它移到了跨度中,它无法正常工作。将不胜感激任何建议。
<div style="width:400px;">
<span style="display:inline-block;width:50%;" onclick="location.href='http://www.google.com'">Go to Google</span><span style="display:inline-block;width:50%;float:right;weight:bold;" onclick="location.href='http://www.yahoo.com';><img src="test.gif" width=40 height=40 border=0>Go to Yahoo</span>
</div>