gpt4 book ai didi

css - Woocommerce 商店页面产品利润

转载 作者:太空宇宙 更新时间:2023-11-04 08:44:12 24 4
gpt4 key购买 nike

我最难摆脱我的自定义 WooCommerce 主题上的这个产品右边距,位于商店页面。我尝试过的一切似乎都不起作用。这是 HTML 输出:

<div class="products">
<div class="col-md-4 post-17 product type-product status-publish has-post-thumbnail first instock featured shipping-taxable purchasable product-type-simple" style="margin-right:0 !important;">
<a href="http://localhost:8888/wordpress/product/product-1/" class="woocommerce-LoopProduct-link"><img width="300" height="252" src="http://localhost:8888/wordpress/wp-content/uploads/2017/05/LCL_WEB-_31-300x252.png" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="LCL_WEB-_31" title="LCL_WEB-_31"><h2 class="woocommerce-loop-product__title">Product #1</h2>
<span class="price"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>25.00</span></span>

            <div class="col-md-4 post-23 product type-product status-publish has-post-thumbnail  instock featured shipping-taxable purchasable product-type-simple" style="margin-right:0 !important;">
<a href="http://localhost:8888/wordpress/product/product-2/" class="woocommerce-LoopProduct-link"><img width="300" height="255" src="http://localhost:8888/wordpress/wp-content/uploads/2017/05/LCL_WEB-_29-2-300x255.png" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="LCL_WEB-_29" title="LCL_WEB-_29"><h2 class="woocommerce-loop-product__title">Product #2</h2>
<span class="price"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>250.00</span></span>

            <div class="col-md-4 post-29 product type-product status-publish has-post-thumbnail  instock featured shipping-taxable purchasable product-type-simple" style="margin-right:0 !important;">
<a href="http://localhost:8888/wordpress/product/product-3/" class="woocommerce-LoopProduct-link"><img width="300" height="255" src="http://localhost:8888/wordpress/wp-content/uploads/2017/05/LCL_WEB-_33-300x255.png" class="attachment-shop_catalog size-shop_catalog wp-post-image" alt="LCL_WEB-_33" title="LCL_WEB-_33"><h2 class="woocommerce-loop-product__title">Product #3</h2>
<span class="price"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">$</span>450.00</span></span>

这是 the problem

最佳答案

如果你想显示彼此相邻的不同产品,请使用 inline-block:

.product {
display: inline-block
}

显示属性 block 始终填满其父级的整个宽度。

关于css - Woocommerce 商店页面产品利润,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43902739/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com