首页 > 代码库 > yassan.win页面笔记

yassan.win页面笔记

  • window.scrollTo(x,y);
<script type="application/x-javascript">
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);//当页面加载完成出发事件
function hideURLbar() {
window.scrollTo(0,0);//跳转到的坐标位置
}
</script>

  • 用到的浏览器初始化文件
/*-- Reset Code --*/
body {
padding:0;
margin:0;
background:#FFF;
font-family: ‘Nunito‘, sans-serif;
}
body a {
transition:0.5s all;
-webkit-transition:0.5s all;
-moz-transition:0.5s all;
-o-transition:0.5s all;
-ms-transition:0.5s all;
text-decoration: none;
}
body a:hover {
text-decoration: none;
}
body a:focus, a:hover {
text-decoration: none;
}
input[type="button"],input[type="submit"] {
transition:0.5s all;
-webkit-transition:0.5s all;
-moz-transition:0.5s all;
-o-transition:0.5s all;
-ms-transition:0.5s all;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
font-family: ‘Nunito‘, sans-serif;
}
p {
margin:0;
}
ul {
margin:0;
padding:0;
}
label {
margin:0;
}
a:focus, a:hover {
text-decoration: none;
outline: none
}
/*-- //Reset Code --*/

yassan.win页面笔记