首先引入js文件
<script type="text/javascript" src="http://hovertree.com/ziyuan/jquery/jquery-1.11.3.min.js";></script>
<script type="text/javascript" src="http://hovertree.com/texiao/yestop/inc/jquery.yestop.js";></script>
一句重要代碼實(shí)現(xiàn)
<script type="text/javascript">
$(document).ready(function () { $.fn.yestop(); })
</script>
demo如下
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8">
<title>YesTop - HoverTree</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="http://hovertree.com/ziyuan/jquery/jquery-1.11.3.min.js";></script>
<script type="text/javascript" src="http://hovertree.com/texiao/yestop/inc/jquery.yestop.js";></script>
<style>
body {
margin: 0px;font-family:Arial
}a{color:blue}
</style>
</head>
<body>
<div style="text-align:center;width:100%;margin:0px auto;">
<h1>我是不是前端妹子把恕??题翰?</h1>
你是妹子蛛蒙?厂榛?<br />
</div>
<div style="height: 1000px;background-color: blanchedalmond;">
</div>
<script type="text/javascript">
$(document).ready(function () { $.fn.yestop(); })
</script>
</body>
</html>
OK了赏僧,一句代碼寫完庭敦,不用在寫很多東西咯
仿知乎返回頂部