【发布时间】:2019-01-10 10:37:38
【问题描述】:
设置
我有一段 HTML,看起来像,
<label for="offeringID_0">
<input type="checkbox" name="offeringID[]" id="offeringID_0" class="active" value="4268" checked="checked">
<span class="product-name">
This product: JSDA JD6500
</span>
"-"
<span class="price">
<del>
<span class="woocommerce-Price-amount amount">
# irrelevant span content
</span>
</del>
</span>
</label>
渲染得很好。
问题
是否可以使用 CSS 删除 "-"?我不知道该怎么做。
我已经在<label for="offeringID_0"> 元素上尝试了display:none;,但是没有显示元素内的任何内容。
【问题讨论】:
-
谁在代码中添加了“-”?
-
您可以将颜色设置为不同的标签和跨度以获得解决方案,但在 CSS 的帮助下无法删除代码
-
@Hkachhia,这个 WooCommerce 插件的开发者。