1
我想对齐span元素右侧的图像。css右对齐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>
你是什么意思“对齐”?像这样:http://jsfiddle.net/sVdE3/1/? – Passerby
其实,它是不对齐的图像,事实上,它甚至不可见我在我和哟你jsfiddle。 – user1904273