Html 我有一行行的div容器包装到每一行,第一行缩进后的第一个框,而不是左对齐。我做错了什么?
我有一行行的div容器包装到每一行,第一行缩进后的第一个框,而不是左对齐。我做错了什么Html 我有一行行的div容器包装到每一行,第一行缩进后的第一个框,而不是左对齐。我做错了什么?,html,alignment,containers,Html,Alignment,Containers,我有一行行的div容器包装到每一行,第一行缩进后的第一个框,而不是左对齐。我做错了什么 <div class="span4" id="_#= $htmlEncode(itemId) =#_" name="Item" style="float:left; margin-bottom:10px; width:150px !important;"> <div class="pull-left resultBoxContainer" style="height:200px; w
<div class="span4" id="_#= $htmlEncode(itemId) =#_" name="Item" style="float:left; margin-bottom:10px; width:150px !important;">
<div class="pull-left resultBoxContainer" style="height:200px; width:150px !important;">
<div class="row-fluid" style="margin-top: -5px; padding-top: 0; width:150px !important;">
<div class="row-fluid" style="width:150px !important;">
<div class="span4" style="width:50px !important;">
<!--#_ if (ctx.CurrentItem.ContentType==' ojpTopic' || ctx.CurrentItem.ContentType==' ojpData') { _#--> <a href="_#=$htmlEncode(ctx.CurrentItem.Path)=#_">
<img class="pull-left relatedItemsIconImage" src="_#= iconUrl =#_?Width=50&Height=50" style="width:50px !important; height:50px !important;" alt="" />
</a>
<!--#_ } else { _#-->
<div style="width: 50px; height: 50px;"> </div>
<!--#_ } _#-->
</div>
<div class="span8" style="width:100px !important;"> <a href="_#=$htmlEncode(ctx.CurrentItem.Path)=#_">_#=$htmlEncode(ctx.CurrentItem.Title)=#_</a>
<br />
<div class="span5">_#= contentType =#_</div>
</div>
</div>
<div class="row-fluid" style="width:150px !important;">
<div class="span12" style="width:150px !important;">_#= ojpDescription =#_</div>
</div>
</div>
</div>
</div>
_#=内容类型=#_
_#=OJP说明=#_
看起来您需要使用style=“display:inline block;”
。这将尊重您的宽度设置
只是其中的一部分在起作用
相关问题: