bonus-material-app/src/styles/reset.css

127 lines
1.3 KiB
CSS
Raw Normal View History

2024-11-18 09:05:38 +08:00
/* 基础设置 */
2024-11-19 10:32:24 +08:00
body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
2024-11-18 09:05:38 +08:00
margin: 0;
padding: 0;
}
2024-11-19 10:32:24 +08:00
ul,
ol {
2024-11-18 09:05:38 +08:00
list-style: none;
}
img {
/* 底部留白 */
display: block;
2024-11-19 10:32:24 +08:00
border: 0;
2024-11-18 09:05:38 +08:00
}
2024-11-19 10:32:24 +08:00
b,
strong {
2024-11-18 09:05:38 +08:00
font-weight: 400;
}
2024-11-19 10:32:24 +08:00
h1,
h2,
h3,
h4,
h5,
h6 {
2024-11-18 09:05:38 +08:00
/* 父元素字号的百分比 */
font-size: 100%;
font-weight: normal;
}
2024-11-19 10:32:24 +08:00
i,
em {
2024-11-18 09:05:38 +08:00
/* 不倾斜 */
font-style: normal;
}
2024-11-19 10:32:24 +08:00
u,
ins,
s,
del {
2024-11-18 09:05:38 +08:00
/* 去掉中划线和下划线 */
text-decoration: none;
}
table {
border: 1px solid #999;
/* 相当于是cellspacing */
border-spacing: 0;
/* 1px边框 */
border-collapse: collapse;
}
2024-11-19 10:32:24 +08:00
td,
th {
2024-11-18 09:05:38 +08:00
border: 1px solid #999;
}
2024-11-19 10:32:24 +08:00
input,
button {
2024-11-18 09:05:38 +08:00
/* 去掉轮廓线 */
outline: none;
2024-11-19 10:32:24 +08:00
border: none;
2024-11-18 09:05:38 +08:00
}
/* 风格设置 */
body {
2024-11-19 10:32:24 +08:00
font: 12px/1.5 'Microsoft YaHei', Tahoma, Helvetica, Arial, '\5b8b\4f53', sans-serif;
2024-11-18 09:05:38 +08:00
color: #333;
}
a {
text-decoration: none;
color: #666;
}
a:hover {
2024-11-19 10:32:24 +08:00
color: #dd302d;
2024-11-18 09:05:38 +08:00
text-decoration: none;
}
.leftfix {
float: left;
}
.rightfix {
float: right;
}
.clearfix::after {
2024-11-19 10:32:24 +08:00
content: '';
2024-11-18 09:05:38 +08:00
display: block;
clear: both;
}
2024-11-19 10:32:24 +08:00
page {
2024-11-19 12:15:43 +08:00
/* height: 100%; */
2024-11-20 14:54:06 +08:00
font-size: 28rpx;
2024-11-20 17:41:05 +08:00
background-color: #e8f5fb;
2024-11-19 10:32:24 +08:00
}