随心记录

Bug不空,誓不成佛

  menu
70 文章
14633 浏览
0 当前访客
ღゝ◡╹)ノ❤️

CSS 的一些初始化内容

/*清除默认样式*/
* {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

a {
	text-decoration: none;
}

input {
	border: 0;
	outline: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 400;
}

/* 常用的样式 */
body {
	font: 14px arial, 'microsoft yahei';
	color: #050505;
	background-color: #eee;
}

/* 版心居中 */
.w {
	width: 1200px;
	margin: 0 auto;
}

a {
	color: #050505;
}

a:hover {
	color: #00b4ff;
}

.fl {
	float: left;
}

.fr {
	float: right;
}

/* 清除浮动 */ 
.clearfix:before, .clearfix:after {
	content: "";
	display: table;
}
.clearfix:after {
	clear: both;
}
.clearfix {
	*zoom: 1;
}

/*第二种清除浮动
.clearfix:after {
	content: "";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
.clearfix {
	*zoom: 1;
}
*/

img {
	vertical-align: middle;
	/*清除ie6图片默认边框*/
	border: 0;
}

em, i {
	font-style: normal;
}

.f12 {
	font-size: 12px;
}

.f14 {
	font-size: 14px;
}

.f16 {
	font-size: 15px;
}

.f18 {
	font-size: 18px;
}

.f20 {
	font-size: 20px;
}

.tc {
	text-align: center;
}
(゚д゚)σ弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌弌⊃