【发布时间】:2011-02-23 14:49:45
【问题描述】:
小部件标题的 html 代码如下。
<div class="widget-header">
<span>caption</span>
<a href="sh/index.php?type=rec">more</a>
<img src="/img/widgets/widgets_more.gif" />
</div>
我的 CSS 代码是
.widget-header span { float: left; }
.widget-header a, img { float: right; }
如果是这样,widgets_more 右箭头将像这样定位到文本“更多”的左侧,
如何通过修改 css 代码获得正确的顺序?
谢谢。
【问题讨论】: