Commit 71ca1090 by 王东红

fix

parent 2805e6b6
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<image id="swatch_image" type="swatch_image"> <image id="swatch_image" type="swatch_image">
<width>40</width> <width>40</width>
<height>50</height> <height>40</height>
</image> </image>
<!-- These lists use category_page_grid fallback. Not need to declare srcset for them --> <!-- These lists use category_page_grid fallback. Not need to declare srcset for them -->
......
...@@ -1657,10 +1657,10 @@ button.action.submit.primary { ...@@ -1657,10 +1657,10 @@ button.action.submit.primary {
} }
} }
.swatch-option.color, .swatch-option.text, .swatch-option.image{ //.swatch-option.color, .swatch-option.text, .swatch-option.image{
width: 40px !important; // width: 40px !important;
height: 40px !important; // height: 40px !important;
} //}
//色块强制大小 //色块强制大小
#product-options-wrapper .swatch-option.image{ #product-options-wrapper .swatch-option.image{
......
...@@ -509,7 +509,8 @@ ...@@ -509,7 +509,8 @@
} else if (type === 2) { } else if (type === 2) {
// Image // Image
html += '<div class="' + optionClass + ' image" ' + attr + html += '<div class="' + optionClass + ' image" ' + attr +
' style="background: url(' + value + ') no-repeat center; background-size: initial;' + '">' + '' + ' style="background: url(' + value + ') no-repeat center; background-size: initial;width:' +
swatchImageWidth + 'px; height:' + swatchImageHeight + 'px">' + '' +
'</div>'; '</div>';
} else if (type === 3) { } else if (type === 3) {
// Clear // Clear
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment