jquery
样式类操作
css修改样式
位置操作
jquery绑定click事件
jquery 实现滚动条
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.c1{
width:100px;
height: 100px;
background-color: red;
}
.c2{
width:100px;
height: 400px;
background-color: green;
}
.c3{
width:100px;
height: 400px;
background-color: blue;
}
.s1{
position: fixed;
left: 10px;
bottom: 20px;
width: 100px;
height: 60px;
line-height: 60px;
text-align: center;
border: 1px solid black;
border-radius:50% ;
color: deepskyblue;
background-color: black;
font-size: 14px;
}
.hide{
display: none;
}
</style>
</head>
<body>
<span class="s2">这里是顶部</span>
<div class="c1"></div>
<button class="btn">变</button>
<div class="c2"></div>
<div class="c3"></div>
<span class="s1 hide">请点击</span>