为什么 V2EX 没有返回顶部的按钮?

2020-11-04 08:52:41 +08:00
 pythonzz
建议加一个返回顶部的按钮,当然只是个建议🤭
5087 次点击
所在节点    反馈
28 条回复
lxk11153
2020-11-04 11:09:56 +08:00
无所谓,我用 cmd+↑
jiezhi
2020-11-04 11:17:37 +08:00
直接 gg
kbi
2020-11-04 12:35:57 +08:00
vimium
SjwNo1
2020-11-04 13:46:00 +08:00
vimium gg 不就完了
oneisall8955
2020-11-04 14:09:46 +08:00
Home/End
GzhiYi
2020-11-04 14:36:05 +08:00
油猴脚本写一个就可以,我自己就给所有网页增加了一个 top 。
代码:

(function() {
'use strict';
var parent = document.createElement('div');
var top = document.createElement('div');
top.append('Top')
top.onclick = function() {
window.scrollTo(0, 0)
}
top.className = 'go-top'
top.style.position = 'fixed';
top.style.bottom = '20px';
top.style.right = '20px';
top.style.cursor = 'pointer';
top.style.zIndex = '999';
parent.append(top)
document.body.append(parent);
})();

https://greasyfork.org/zh-CN/scripts/389939-top
shareSK
2020-11-04 15:26:10 +08:00
键盘直接 home 啊
chiu
2020-11-04 23:05:41 +08:00
应该没有我 gg 快

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/721591

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX