您可以使用主题组件 Filtered Topic Lists 并配合 in:pinned 查询。\n\n如果您想坚持使用 CSS,可以这样做:\n\ncss\n// 定位列表中的最后一个置顶项\ntr.topic-list-item.pinned:has(+ tr:not(.pinned)) td {\n // 强制表格行内添加空间的粗略方法\n padding-bottom: 1.8em;\n}\n\ntr.topic-list-item.pinned:has(+ tr:not(.pinned))::after {\n // 如果需要,在此空间中显示的内容\n content: 'regular';\n width: 100%;\n position: absolute;\n display: flex;\n height: 1em;\n left: 0;\n right: 0;\n bottom: 0;\n justify-content: center;\n border-top: 1px solid var(--primary-low);\n}\n
5 个赞