【问题标题】:Display products in 2 rows on mobile - Woocommerce在移动设备上以 2 行显示产品 - Woocommerce
【发布时间】:2019-10-15 18:56:29
【问题描述】:

我有一家 Woocommerce 商店,我想在移动设备上分两列展示产品(现在是一列)

我的店铺是:https://adidog.pl

我试过了:

@media only screen and (max-width: 540px) {
 .cmsmasters_products.columns-3 .product
{
    width: 48.3%;
    float: left;
}
}

但它们不会显示在同一行。

【问题讨论】:

    标签: css wordpress woocommerce


    【解决方案1】:

    在css下面更新。到期边距填充48.3% 不起作用。你也需要clear:none;

    @media only screen and (max-width: 540px) {
      .cmsmasters_products.columns-3 .product {
        width: 46%;
        float: left;
        clear: none !important;
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-30
      • 1970-01-01
      • 2017-09-02
      • 1970-01-01
      • 2018-06-14
      相关资源
      最近更新 更多