3
我覺得有點可笑問這個,但使用asp.net的剃刀語法我無法弄清楚如何得到這個標籤循環不把每個標籤上一個新的生產線在同一條線上的循環HTML標記使用剃刀
@if (poolitem.SupplierStarRating > 0)
{
@for (int i = 0; i < poolitem.SupplierStarRating; i++)
{
<small class="glyphicon glyphicon-star"></small>
}
}
我想要做的就是避免出現這個小空間時,內聯標籤被放置在單獨的行
真棒,我想我已經嘗試過這一點,但我仍然有括號和標籤之間的空格,刪除它們,它的工作。謝謝 – Goodsoup