Css Pc端默认样式(适用于大部分项目开发)
Posted 老张在线敲代码
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Css Pc端默认样式(适用于大部分项目开发)相关的知识,希望对你有一定的参考价值。
/**
**/
//\\5b8b\\4f53
//$yh:'Microsoft Yahei';
body,
textarea,
input,
select,
option {
font-size: 14px;
color: #333;
font-family: "Hiragino Sans GB", "Microsoft Yahei", tahoma, arial, sans-serif;
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
ol,
ul,
dl,
dd,
p,
textarea,
input,
select,
option,
form {
margin: 0;
}
ol,
ul,
textarea,
input,
option,
th,
td {
padding: 0;
}
table {
border-collapse: collapse;
}
li {
list-style-type: none;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
display: block;
}
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {
*zoom: 1;
}
.clear {
clear: both;
height: 0;
overflow: hidden;
}
a {
text-decoration: none;
color: #333;
}
a,
textarea,
input,
select {
outline: none;
}
textarea {
overflow: auto;
resize: none;
}
.img img {
display: block;
}
a img {
border: none;
}
//.z-index {
// position: fixed;
// _position: absolute;
// z-index: 999;
// display: none;
// overflow: hidden;
//}
.pr {
position: relative;
}
.pa {
position: absolute;
}
.fl {
float: left;
}
.fr {
float: right;
}
a:hover {
text-decoration: underline;
}
.m {
margin: 0 auto;
width: 1200px;
padding: 0 40px;
}
.mt {
margin-top: 15px;
}
.hide {
display: none;
}
.show {
display: block;
}
/**
去ie10 小X
*/
::-ms-clear {
display: none;
}
::-ms-reveal {
display: none;
}
/**
placeholder color更改
*/
::-webkit-input-placeholder {
/* WebKit browsers */
color: #ccc;
}
:-moz-placeholder {
/* Mozilla Firefox 4 to 18 */
color: #ccc;
}
::-moz-placeholder {
/* Mozilla Firefox 19+ */
color: #ccc;
}
:-ms-input-placeholder {
/* Internet Explorer 10+ */
color: #ccc;
}
[v-cloak] {
display: none;
}
以上是关于Css Pc端默认样式(适用于大部分项目开发)的主要内容,如果未能解决你的问题,请参考以下文章