页面滚动问题

This commit is contained in:
chenyan 2022-12-10 21:30:30 +08:00
parent 4c6a34f84a
commit dd3ed3ab36
3 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,12 @@
else
$('div.go-top').hide();
});
$('#content').scroll(function() {
if ($(window).scrollTop() > 400)
$('div.go-top').show();
else
$('div.go-top').hide();
});
$('div.go-top').click(function() {
$('html, body, #content').animate({scrollTop: 0}, 400);
});

View File

@ -59,7 +59,7 @@ body {
}
#content {
padding: 10px 10px 0px 10px;
overflow: auto;
overflow: initial;
}
footer {
margin-top: 10px;

View File

@ -39,7 +39,7 @@ ipvsadm --help
运维跟你什么仇什么怨, 不能把机器配到同一个网段呢...
## uRPF 教做人
## URPF 教做人
在学习 lvs 期间, 看到 DR 模式的特点: response 的流量不用经过负载均衡器.