如何保持嵌套div出现?
这是我的 CSS 代码:
.elementor-post__text {
visibility: hidden;
}
这是我的 HTML:
<div class="elementor-post__card">
<div class="elementor-post__text">
<h4 class="elementor-post__title">
<a href="">Best<span class="dashicons "></span> </a>
</h4>
<div class="elementor-post__excerpt">
<p>As a beginner, you will surely encounter a lot of problems</p>
</div>
</div>
</div>
我的问题是:
如何保持“elementor-post__excerpt”出现?
我想展示“elementor-post__excerpt”。
谢谢你的回答,我真的很感激。对不起我的英语。
This is my CSS code:
.elementor-post__text {
visibility: hidden;
}
This is my HTML:
<div class="elementor-post__card">
<div class="elementor-post__text">
<h4 class="elementor-post__title">
<a href="">Best<span class="dashicons "></span> </a>
</h4>
<div class="elementor-post__excerpt">
<p>As a beginner, you will surely encounter a lot of problems</p>
</div>
</div>
</div>
My question is:
How to keep the "elementor-post__excerpt" appearing?
I wanna show "elementor-post__excerpt".
Thanks for your answer, I really appreciate it. Sorry for my English.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您的
elementor-post__excerpt
div 嵌套在elementor-post__text
div 中,并且该 div 的可见性被隐藏,因此它的所有子项也是如此。在本例中,您希望让 div 可见。您可以尝试使用 CSS 类将摘录 div 移到 div 之外。Since you have your
elementor-post__excerpt
div nested within theelementor-post__text
div, and that div has its visibility hidden, so do all its children. In this case the div you want to be visible. You can try moving the excerpt div outside the div with the CSS class.