【Css/Html】网页Css默认设计样式载入模板代码body.css

网页Css默认设计样式载入模板代码body.css(笔记用)

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;
}

img {
	/* 底部留白 */
	display: block;
}

input,
button {
	/* 去除轮廓线 */
	outline: none;
	border: none;
}

input {
	/* 去掉表单的默认内边距 */
	padding: 0;
}

.clearFix::after {
	content: "";
	display: block;
	clear: both;
}

/* html{overflow-x:hidden;} */
ul,
li {
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	white-space: nowrap;
}

div{
	/* CSS3盒子模型; */
	box-sizing:border-box;
	-webkit-box-sizing: border-box;

}

/* 禁用长按页面时的弹出菜单 */
img,a{-webkit-touch-callout:none}

/* 定义正常链接的样式; */
a:link {
	color: rgb(39, 39, 38);
	text-decoration: none;
}

/* 定义已访问过链接的样式; */
a:visited {
	color: rgb(39, 39, 38);
	text-decoration: none;
}

猜你喜欢

转载自blog.csdn.net/dxnn520/article/details/125553159
今日推荐