Forgot password
 Register account
View 339|Reply 6

目录跳转楼层

[Copy link]

3211

Threads

7832

Posts

52

Reputation

Show all posts

hbghlyj posted 2022-8-18 03:12 |Read mode
建议在scrolltop工具条添加跳转楼层按钮. 现在的功能只是“回顶部”和“返回帖子列表”和“快速回复”, 感觉不是很常用 52235_1342052819_954.png
目录跳转,就像这个博客😃
(帖子如果没有标题,也许可以把正文缩略一下)
52235_1342052819_954.png
知乎专栏也有目录跳转, 例如zhuanlan.zhihu.com/p/460491405 52235_1342052819_954.png

顺便一提, 除1#外其他楼层帖子的标题默认是Re: (...1楼标题), 但是可以把它编辑成特定的标题.

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-8-18 03:30
hbghlyj 发表于 2022-8-18 03:12
顺便一提, 除1#外其他楼层帖子的标题默认是Re: (...1楼标题), 但是可以把它编辑成特定的标题. ...
没这功力。

PS、回帖标题,以及放入表格里的文字,似乎不会引用到,所以上面这块只引用到你最后那一句“顺便一提”。

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2022-8-18 03:45
kuing 发表于 2022-8-17 20:30
没这功力。

PS、回帖标题,以及放入表格里的文字,似乎不会引用到,所以上面这块只引用到你最后那一句“ ...
可以做成一个简单的列表 点击目录按钮就显示
<ul type="none">
  <li> <a href="#pid...">1#标题</a> </li>
  <li> <a href="#pid...">2#标题</a> </li>
  ...
</ul>

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2022-8-21 22:01
kuing 发表于 2022-8-17 20:30
没这功力。

PS、回帖标题,以及放入表格里的文字,似乎不会引用到,所以上面这块只引用到你最后那一句“ ...
不包含“回帖标题”是因为它在数据表中不在message这一列吧
放入表格里的文字为什么不会引用到

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2022-10-22 15:42
建议只有一层的帖子不需要显示目录

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2023-3-20 18:50
hbghlyj 发表于 2022-8-17 20:45
可以做成一个简单的列表 点击目录按钮就显示

   1#标题
Screenshot 2023-03-20 104100.png
decoyit.com也是Discuz! X3.4论坛
他们也做了一个目录
目录的标题还有次级标题
图中“Flask App”就是次级标题

3211

Threads

7832

Posts

52

Reputation

Show all posts

original poster hbghlyj posted 2023-3-25 04:30
hbghlyj 发表于 2023-3-20 11:50
decoyit.com也是Discuz! X3.4论坛
他们也做了一个目录
目录的标题还有次级标题
对抗自动化社区的目录挺高级:
只展开正在阅读的一级标题下的二级标题
滚过去后二级标题就折叠起来
例如这帖
output.gif
output.gif 这帖

Comment

有点儿意思😃有空你分析一下代码,我😪了  posted 2023-3-25 04:39

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-20 05:47 GMT+8

Powered by Discuz!

Processed in 0.015417 seconds, 29 queries