0
我有網格產品。網格中的每個產品行都可以用來顯示完整的產品詳細信息(使用Ajax完成)。下面的示例顯示了我如何將微數據實施到網格中(而不是完整的產品詳細信息)。在頁面中一遍又一遍地重複相同的微數據這是最好的方式嗎?微網格產品網格
<tbody>
@foreach (var product in Model)
{
<tr itemscope itemtype="http://schema.org/Product" class="tr_prod" style="height:105px;" productid="@product.Id" optionid="@product.OptionId" shopcityid="@product.ShopCityId">
<td>
<div class="prod_img_small">
<img class="preview" src="@Url.Content("~/Files/Products/" + product.ImgFileName)" />
</div>
</td>
<td itemprop="name">
<b>@product.Name</b>
</td>
<td>
<div itemprop='productID'>
<b>@product.Id</b>
</div>
</td>
<td>
<div itemscope itemprop="priceSpecification" itemtype="http://schema.org/DeliveryChargeSpecification">
<b><span itemprop="price">@product.DeliveryPrice</span></b>
</div>
</td>
<td>
<b>@product.ProductPrice</b>
</td>
<td>
<b>@product.TotalPrice </b>
</td>
</tr>
}
</tbody>