【问题标题】:Remove text from CSS从 CSS 中删除文本
【发布时间】:2017-06-22 22:39:51
【问题描述】:

我正在使用 Wordpress,我想从页脚的框中删除作者信息。 这是盒子的 HTML 代码:

<footer class="entry-footer clearfix">
: :before
<span class="entry-cats">
<span class="entry-label">
<i class="fa fa-tag">
: :before
</i>
Categorie:
</span>
<a href="http://ec2-52-57-169-182.eu-central-1.compute.amazonaws.com/categoria-quale-scegliere/">Quale scegliere</a>
</span>
<!--End .entry-tags-->
<span class="entry-separator">
: :before
/
</span>
<a class="entry-comments" href="#">Nessuna risposta</a>
<span class="entry-separator">/</span>
di
<a class="entry-author" href="http://ec2-52-57-169-182.eu-central-1.compute.amazonaws.com/author/user/">Admin</a>
: :after
</footer>

这是图片 Footer box

我刚刚在 CSS 中直接删除了作者姓名:

.entry-author{
display:none !important;
}

现在我需要删除“Nessuna risposta”和单词“di”(英文中的“by”)之间的斜线。 我不知道该怎么做,因为这是文本而不是课程。 Firefox Inspector 将文本显示为#text

如果您想直接在网站上观看,请转到here,然后在页面上进行。

谢谢。

【问题讨论】:

    标签: html css wordpress text


    【解决方案1】:

    斜线是a.entry-comments + span.entry-separator: { display: none; }

    对于“di”这个词,最好将它包装在一个跨度中并分配一个类,您可以使用display: none; 隐藏它。

    【讨论】:

      猜你喜欢
      • 2012-12-25
      • 1970-01-01
      • 1970-01-01
      • 2018-06-12
      • 2011-06-18
      • 2015-07-30
      • 2012-01-03
      • 2021-02-20
      相关资源
      最近更新 更多