Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 向simplecart js添加拇指_Javascript_Simplecart - Fatal编程技术网

Javascript 向simplecart js添加拇指

Javascript 向simplecart js添加拇指,javascript,simplecart,Javascript,Simplecart,我正在使用一个名为simplecart的购物车js插件。我很难在购物车中显示产品图片和产品信息 此行获取要显示在购物车中的全尺寸图像 <img src='$file' class='item_thumb' alt='{$row['name']}' /> 有人知道如何在购物车中显示拇指吗?在 您还可以考虑将高度/宽度的约束添加到您已经使用的“ITEM -拇指”< /代码>的CSS中。 <img src='$file' class='item_thumb' height=

我正在使用一个名为simplecart的购物车js插件。我很难在购物车中显示产品图片和产品信息

此行获取要显示在购物车中的全尺寸图像

<img src='$file' class='item_thumb' alt='{$row['name']}' />


有人知道如何在购物车中显示拇指吗?


您还可以考虑将高度/宽度的约束添加到您已经使用的<代码>“ITEM -拇指”< /代码>的CSS中。

<代码>
<img src='$file' class='item_thumb' height='20px' width='20px' alt='{$row['name']}' />

您需要将'item_thumb'类添加到产品的图像中,并使用图像源的值添加属性'thumb'。

该行来自my product.php文件。在该文件中添加高度和宽度。添加类项_thumb会将图像发送到cart.php。但我不知道如何约束该文件中的图像。该插件缺少像样的示例和演示!
<div class="shop-item-image">
<img src="image/bqt-item.png" class="item_thumb" thumb="image/bqt-item.png">
</div>