问题描述
我想将徽标稍大一些,但似乎无法解决。如果我想将当前大小增加一倍,有人可以指导我吗?这是当前的编码:
<img alt="{{ store.name }} Home" class="store-image" src="{{ theme.images.header_logo.url | constrain: '',140 }}" srcset="{{ theme.images.header_logo.url | constrain: '',280 }} 2x,{{ theme.images.header_logo.url | constrain: '',140 }} 1x">
解决方法
您可以根据需要设置样式。这只是一个概念证明,可能与您想要的实际尺寸相差很远:
<img alt="{{ store.name }} Home" class="store-image" src="{{ theme.images.header_logo.url | constrain: '',140 }}" srcset="{{ theme.images.header_logo.url | constrain: '',280 }} 2x,{{ theme.images.header_logo.url | constrain: '',140 }} 1x" style="width: 2000px; height: 2000px">