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>