gpt4 book ai didi

html - 隐藏移动 View 的表格列

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

我有 5 行(我可以将其更改为 4 或 6)但总共有 4 个固定列,因为我想在移动 View 中隐藏第 3 列,尝试添加以下 CSS 但没有任何效果。

@media (max-width:768px){.tablepress :nth-child(4n+2) { 显示:无!重要; }}

最佳答案

使用正确的 css 选择器..

tbody tr td:nth-child(3) { display : none}

表头类似使用

thead tr th:nth-child(3) { display : none}

关于html - 隐藏移动 View 的表格列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48550070/

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