向Woocommerce产品添加销售价格会产生间距问题

时间:2022-05-31 19:20:39

I am using:

我在用:

  • WordPress version 4.7.1
  • WordPress版本4.7.1
  • Woocommerce version 2.6.12
  • Woocommerce版本2.6.12
  • The Retailer Theme version 2.1
  • 零售商主题版本2.1

When I add a Sale Price to a product the products below that particular item get pushed over. As seen here:

当我向产品添加销售价格时,该特定商品下方的产品会被推翻。如下所示:

http://st-tropezhome.com/shop/product-category/decor/vases/

http://st-tropezhome.com/shop/product-category/decor/vases/

You can see I've added a Sale Price to the product "Vase Atacama 16″" and this causes the products in the row below to be pushed over to the right.

您可以看到我已将“销售价格”添加到产品“Vase Atacama 16”中,这会导致下面一行中的产品被推到右侧。

I've inspected these elements and am not seeing anything strange in the CSS that would cause this spacing issue.

我已经检查了这些元素,并且在CSS中没有看到任何可能导致此间距问题的奇怪内容。

1 个解决方案

#1


2  

Setting the line-height on the del element which contains the old price works for me:

在del元素上设置包含旧价格的行高为我工作:

.price del {
    line-height: 1;
}

#1


2  

Setting the line-height on the del element which contains the old price works for me:

在del元素上设置包含旧价格的行高为我工作:

.price del {
    line-height: 1;
}