我有一個img
標記,就像你在代碼中看到的那樣,.pull-left
類在類.text-right
裏面,這看起來好像不會讓pull-left
正常工作。這就像.text-right
類優先於.pull-left
。如何在「text-right」內使用「左拉」?
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<a>
<div class="panel panel-default">
<div class="panel-body text-right">
<img class="pull-left" style="position:absolute;" src="http://placehold.it/125x125/000/fff">
<strong class="pull-right">item</strong>
<div class="clearfix"></div>
<div>text</div>
<div>text</div>
<div>text</div>
</div>
</div>
</a>
人有什麼想法?
你可以試着類適用於它的容器,其寬度集。應該沒有問題 – choz