请参阅此处示例http://jsfiddle.net/fGWuN/3/
HTML
<div>
<h4 class="pro-price">€135.57</h4>
<a class="order-button" href="javascript:void(0)">Order<span></span></a>
</div>
CSS
div {float:right; border: 1px solid red}
h4 {float:left; dispaly:inline-block}
a {float:left; display:inline-block}
答案 0 :(得分:1)
删除浮动并修复“显示”错误。
答案 1 :(得分:0)
试试这个:
div {float: right; border: 1px solid red}
h4 {float: left; display:inline}
a {float: left; display:inline; padding: 20px 0 0 20px; }