FROM CACHE - zh-cn_header
此社区已转向点对点支持。Shopify 支持团队将不再为此社区提供服务。我们建议您与其他商家和合作伙伴建立联系以获取帮助,并分享您的经验! 如发现有任何违反我们行为准则的行为或您希望删除的内容,欢迎继续举报。

社区即将迁移!从 7月7日 开始,当前社区将进入只读状态,持续约两周。期间您仍可浏览内容,但暂时无法使用发布功能。详细了解

The main images of my store’s products are all deformed.

The main images of my store’s products are all deformed.

kspeed
观光客
14 0 2

This is so weird. Suddenly, all product main images are displayed like this. I hope someone can help me.

Thank you!   https://kspeedauto.com/products/pair-fit-2008-2009-2010-2011-mercedes-benz-w204-led-smoke-side-marke...

kspeed_0-1718864003033.png

 

6 条回复6

豪克斯
Shopify Partner
51 5 8

找到component-product.css,删除

 
 

 

.productView-image.fit-unset .productView-img-container {
padding-bottom: 0 !important;
}
.productView-image.fit-unset .productView-img-container .media {
    position: initial;
}

 

找到.productView-image.fit-unset .productView-img-container img:not(.zoomImg)

修改为:

 

.productView-image.fit-unset .productView-img-container img:not(.zoomImg) {
    position: initial;
    transform: inherit;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    left: auto;
    top: auto;
    display: inherit;
}

 

v:Simon_Du_
有问题随时call
kspeed
观光客
14 0 2

这样操作 ,图片都不能展示了 ,怎么弄呀下一步,麻烦看一下

豪克斯
Shopify Partner
51 5 8
.productView-image .productView-img-container{
padding-bottom:100%;
}

如果你的产品图片是正方形,将这段代码加到component-product.css里面

v:Simon_Du_
有问题随时call
kspeed
观光客
14 0 2

现在 完全好了  感谢感谢!

kspeed
观光客
14 0 2

谢谢😁

cita
访客
3 0 0

你好,请问你最后怎么解决的?我这里商品详情页只有第一张图会变形,其他正常