You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何忽略/覆盖已有CSS类?解决隐藏文本无法显示问题

Fixing Hidden Text with Custom CSS Overrides

Got it, let's get that hidden text showing again! The original CSS uses an SVG filter (filter:url(#hidden-text)) to hide the content—this is a common trick similar to ad-block circumvention, but we can override it easily with your CSS modification tool.

Here's what you need to do:

  • Basic Override (Most Likely to Work)
    Add this rule to your custom CSS. The !important flag ensures your rule takes priority over the original site's CSS:

    .text-invisible {
      filter: none !important;
    }
    

    This completely removes the hidden-text SVG filter, which is almost certainly what's making the text disappear.

  • If the Basic Rule Doesn't Stick
    Sometimes the original site uses a more specific CSS selector (like .some-parent .text-invisible). To beat that specificity, make your selector more precise. For example:

    /* Use the element type plus the class */
    span.text-invisible, p.text-invisible {
      filter: none !important;
    }
    /* Or combine with a parent class from the site's HTML */
    .article-content .text-invisible {
      filter: none !important;
    }
    
  • Bonus: Cover All Bases
    In rare cases, the text might have extra hidden properties. Add these to your rule to ensure it's fully visible:

    .text-invisible {
      filter: none !important;
      opacity: 1 !important;
      visibility: visible !important;
      display: inline !important; /* Adjust to block/inline-block if needed for layout */
    }
    

That should do it! The key here is neutralizing the SVG filter that's hiding the text—once you set filter: none, the content should pop right back into view.

内容的提问来源于stack exchange,提问作者larsadreano

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:50:22