Java 引导附加div
我对bootstrap还不熟悉,我正在尝试添加这些仪表板单元,以便它们在一个小型学校项目中并排显示Java 引导附加div,java,css,twitter-bootstrap,Java,Css,Twitter Bootstrap,我对bootstrap还不熟悉,我正在尝试添加这些仪表板单元,以便它们在一个小型学校项目中并排显示 示例:仪表板单元看起来好像您正在用一个.container装载每个仪表板单元。如果是这种情况,请尝试以下方法: <div class="container"> <div class="box theme well"> <div id="itemListing"> <c:forEach items="#{product.allItems}" var=
示例:仪表板单元看起来好像您正在用一个
.container
装载每个仪表板单元
。如果是这种情况,请尝试以下方法:
<div class="container">
<div class="box theme well">
<div id="itemListing">
<c:forEach items="#{product.allItems}" var="productItem" >
<!--/ Removed the ".container" wrapping -->
<div class="dash-unit col-sm-2">
<div style="color: lightskyblue; margin: 4px; ">#{productItem.title}</div>
<hr style="color: white;" />
<img src="#{product.IMG_URL}#{productItem.img_url}" />
<br/>
<br/>
Genre: #{productItem.genre}
<br/>
Tillverkare: #{productItem.manufacturer}
<br/>
Pris: #{productItem.price}
<br/>
<br/>
<div style="color: greenyellow;">Lagersaldo: #{productItem.quantity}</div>
</div>
</c:forEach>
</div>
</div>
</div>
#{productItem.title}
类型:#{productItem.Genre}
Tillverkare:#{productItem.manufacturer}
Pris:#{productItem.price}
Lagersaldo:#{productItem.quantity}
以下是有关Bootstrap如何使用其网格系统的一些信息:
很高兴它成功了@henkolicous&没问题,很乐意帮忙!
<div class="container">
<div class="box theme well">
<div id="itemListing">
<c:forEach items="#{product.allItems}" var="productItem" >
<!--/ Removed the ".container" wrapping -->
<div class="dash-unit col-sm-2">
<div style="color: lightskyblue; margin: 4px; ">#{productItem.title}</div>
<hr style="color: white;" />
<img src="#{product.IMG_URL}#{productItem.img_url}" />
<br/>
<br/>
Genre: #{productItem.genre}
<br/>
Tillverkare: #{productItem.manufacturer}
<br/>
Pris: #{productItem.price}
<br/>
<br/>
<div style="color: greenyellow;">Lagersaldo: #{productItem.quantity}</div>
</div>
</c:forEach>
</div>
</div>
</div>