gpt4 book ai didi

html - 无法弄清楚如何显示 : none for the following class

转载 作者:太空宇宙 更新时间:2023-11-04 01:15:09 25 4
gpt4 key购买 nike

我是 HTML 和 CSS 的新手,我主要使用它来对我的网站进行自定义更改,所以如果这是一个非常基本的问题,我深表歉意,但到目前为止我无法在网上找到答案。

我正在尝试从我的作者资料中删除“总阅读量”行,但保留“总帖子数”行。

这很容易接受“Total Reads”和“Total Posts”都有一个类名“row”并且都包含相同的类,如“col total-label text-right”,所以我不能设置一个显示:无而不影响两者。有谁知道我如何绕过这个,我已经尝试了十几种不同的东西,但在网上找不到任何东西。

这是我网站上示例作者页面的链接:https://www.thepostmillennial.com/members/barbrakay/

提前致谢!

最佳答案

你可以使用它只会删除第一行

#buddypress .bbp-user-report .user-totals .row:first-of-type { display:none }

或者你可以使用内联样式

<div class="row" style="display:none;">

关于html - 无法弄清楚如何显示 : none for the following class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50318823/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com