Html
    Css
    Js

    
                        
 * {
	padding:0;
	margin:0;
}
body,html {
	margin:0;
	padding:0;
	font-family:sans-serif;
}
#box {
	position:relative;
	width:200px;
	height:200px;
	background:lightskyblue;
	border:10px solid lightpink;
	margin:auto;
	overflow:auto;
}
#content {
	letter-spacing:1px;
	font-weight:700;
	line-height:50px;
	text-transform:uppercase;
	background-image:-webkit-linear-gradient(top left,lightpink,lightblue);
}
#back {
	position:fixed;
	top:100px;
	margin-left:162px;
	width:20px;
	height:50px;
	background:rgb(94,206,243);
	font-size:12px;
	line-height:12px;
	text-align:center;
	opacity:.8;
	cursor:pointer;
	display:none;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

js返回顶部

更新时间:2020-03-09 12:10:22

0