我正在使用带有“布鲁克林”主题的 Shopify,我需要将页脚中的付款图标放大。我试图更改 img 类的 CSS 代码以更改图标的大小,但我只能使它们更小而不是更大。知道如何改变它吗?
.payment-icons {
@include prefix('user-select', 'none');
cursor: default;
margin-bottom: 0;
li {
margin: 0 ($gutter / 4) ($gutter / 4);
cursor: default;
}
.icon {
font-size: 30px;
line-height: 30px;
}
.fallback-text {
text-transform: capitalize;
}
}
在您的自定义样式表中添加以下样式 -
.payment-icons .icon {
width: <width in px> !important;
height: <height in px> !important;
}
更新:为您的商店添加以下样式
.payment-icons > img{
min-width: <width in px> !important;
min-height: <height in px> !important;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句