我们使用WordPress运行一个站点,并使用模板进行设计。
在我们的主页上,我们有我们的博客文章的卷轴,其中包括标题,作者/帖子信息,阅读时间和“摘录”?
我们在努力摆脱“节选”
blog-post-content-list-sider是div,文本只是其中的一个#文本。
我查到的每一件事都有点像.blog-post-content-list-sider { display: none; },但这会掩盖整个事情,而不仅仅是它的一个方面(如果我正确理解的话)
这是1 blog-post-content-list-sider的代码
以“前沿”开头的部分是我需要从页面上的每一篇文章中删除的文本。
<div class="blog-post-content-list-sider">
<div class="textalignleft subtitle_post_standard">
<a href="https://www.aimblog.io/category/artificial-intelligence/" title="View all posts in Artificial Intelligence">Artificial Intelligence</a> <a href="https://www.aimblog.io/category/emerging-technology/" title="View all posts in Emerging Technology">Emerging Technology</a> <a href="https://www.aimblog.io/category/medicine/" title="View all posts in Medicine">Medicine</a></div> <h3 class="title_post_standard"> <a href="https://www.aimblog.io/2020/08/30/ai-the-key-to-fertility-treatment/">AI: The Key to Fertility Treatment?</a> </h3>
<div class="fancy_one ig_meta_post_classic textaligncenter">
<span><div class="indie_author">By <b> <div class="vcard author">
<a href="https://www.aimblog.io/author/sohail-merchant/" title="Posts by Sohail Merchant" rel="author">Sohail Merchant</a></div> </b>
</div><div class="indie_on">on </div><div class="updated indie_date"> <b> August 30, 2020</b> </div> </span></div>
<span class="rt-reading-time" style="display: block;"><span class="rt-label rt-prefix">Reading Time: </span> <span class="rt-time">4</span> <span class="rt-label rt-postfix">minutes</span></span>
A Cutting-Edge Discussion about AI’s Eminent Role in Reproduction Intro Artificial intelligence has been widely useful in the diagnosis and treatment of diseases. However, little has been discovered about its capabilities in the realm of fertility treatment. Well, all that is about to change because we will soon experience the first application of AI in […]
</div>发布于 2020-11-10 19:51:57
编辑:
我测试了这个CSS代码,它可以工作。Codepen链接请试一试
.blog-post-content-list-sider{
visibility:hidden;
}
.blog-post-content-list-sider>*{
visibility:visible;
}https://stackoverflow.com/questions/64774497
复制相似问题