OpenCart:删除内联样式(OpenCart: Removing inline style)
在类别页面中,我的css样式被平台生成的内联样式覆盖。 在设置>系统 - 图像[选项卡]下的管理区域中,您可以选择调整图像大小。 例如,我将产品图像列表大小调整为400 x 400,以获得相同的效果但这使得无法为响应性设置样式,因为它会生成如下所示的URL:
http://localhost/THEME/image/cache/data/demo/w1-**400x400.jpg**
生成它的代码位于root / catelog / view / theme / template / product / category.tpl中
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" class="" /></a>
如何阻止Opencart生成此大小? 有任何想法吗?
在此先感谢您的帮助!
In the category page my css styles are being overridden by inline styles generated by the platform. In the admin area under settings > system - images [tab] you get the option to resize your images. For example, I resized Product Image List Size to 400 x 400, to gain the same affect but this makes it impossible to style for responsiveness because it generates a url like so:
http://localhost/THEME/image/cache/data/demo/w1-**400x400.jpg**
The code that is generating this is in the root/catelog/view/theme/template/product/category.tpl
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" class="" /></a>
How do I stop Opencart from generating this size? Any ideas?
Thanks in advance for you help!
原文:https://stackoverflow.com/questions/21219450