【问题标题】:Change the color of tax price in the cart page in CSS在 CSS 中更改购物车页面中税价的颜色
【发布时间】:2017-07-12 13:38:49
【问题描述】:

我正在尝试更改购物车中增值税成本的颜色和大小,并在我的 woocommerce 中结帐。我只想更改增值税的外观,而不是总额。

我正在使用那个 css:

.woocommerce-page .cart-collaterals .cart_totals table th:last-child {
    colour:#000000;
}

但它不起作用。

有什么想法吗?

【问题讨论】:

  • 显示 HTML..
  • 能否请您提供 DOM 的结构,以便我们正确设置它们的样式

标签: css wordpress woocommerce cart tax


【解决方案1】:

首先您需要使用 color 而不是 colour

你应该试试这个 css:

.woocommerce-page #content .cart-collaterals .cart_totals>table tr.total .includes_tax .amount {
    font-size: 18px !important;
    color: #000 !important;
}

这应该可行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-06
    相关资源
    最近更新 更多