Document
56789
公共样式导入
iquery-如何让网页在完全加载完后在显示完整页面
$(function() {
$('body').prepend('').fadeOut();
})
禁止底部出现滚动条?
CSS 禁止滚动条,有4种方法,具体如下:
1、完全隐藏
在
2、在不需要时隐藏
指当浏览器窗口宽度或高度大于页面的宽或高时,不显示滚动条;
反之,则显示;
3、样式表方法
在
加入style="overflow-y:hidden",可隐藏垂直滚动条。
被包含页面里加入
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/*
上面是清除各浏览器,样式差异化
下面是自己写的
*/
a,
a:focus,
a:hover {
text-decoration: none;
}
a {
display: block;
}
img {
max-width: 100%;
}
body {
background-color: #eff2f4;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue,
Helvetica,
PingFang SC,
Hiragino Sans GB,
Microsoft YaHei,
Arial,
sans-serif;
}
div,
ul,
li {
background: rgba(0, 0, 0, 0.1);
}
/*
flex布局
*/
.ju_Center {
display: flex;
justify-content: center;
}
.ju_Between {
display: flex;
justify-content: space-between;
}