Home >
database > Elastic returns at the top of the page (www.gediyy.com) of the code?
Elastic returns at the top of the page (www.gediyy.com) of the code?
<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
No title documents & lt;/title>
<body>
<style>
# goTopBtn {position: fixed; The line - height: 36 px; Width: 36 px; Bottom: 35 px; Height: 36 px; cursor:pointer; display:none;
Background: # 0000 cc; }
</style>
* * *, how are you,
$(window). Scroll (function () {
Var sc=$(window). ScrollTop ();
Var rwidth=$(window). The width ()
If (sc> 0 {
$(" # goTopBtn "). The CSS (" display ", "block");
$(" # goTopBtn "). The CSS (" left ", (rwidth - 36) + "px")
} else {
$(" # goTopBtn "). The CSS (" display ", "none");
}
})
$(" # goTopBtn "). Click (function () {
Var sc=$(window). ScrollTop ();
$(' body, HTML). The animate ({scrollTop: 0}, 500);
})
</script>