样式之页面整体设计 - mowatermelon/studyNode GitHub Wiki

##今天主要是做页面的设计##

主要是做注册和登录界面,用了很多媒体查询感觉还不错的样子

/**
 * Created by wu Eva on 2017/03/23.
 */
@charset "utf-8";

* {
	margin: 0;
	padding: 0
}

.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: ".";
	clear: both;
	height: 0;
}

.clearfix {
	display: inline-table;
	zoom: 1
}

input {
	border: 0
}

h3 {
	font-weight: 400
}

* html .clearfix {
	height: 1%
}

ul li {
	list-style: none
}

a {
	text-decoration: none;
	cursor:pointer;
}

body {
	background-color: #eee;
	font-family: "Microsoft Yahei"!important;
}

* {
	margin: 0 0 0 0;
	padding: 0 0 0 0;
}

ul li {
	list-style: none;
}

/*header---------------------------------------------------*/
#header {
	background-color: #5bc0de;
	margin-bottom: 50px;
	box-shadow: 2px 0 10px #eee;
	height: 80px;
	z-index: 2;
}

#header .headerBox {
	display: block;
	overflow: hidden;
	margin: 0 auto;
	background-image: url("../Image/Login/logo.png");
	background-repeat: no-repeat;
	background-size: 50px 70%;
	background-position: 30px center;
}

#header .headerBox .Rtitle {
	font-size: 36px;
	margin-left: 80px;
	display: inline-block;
	color: #fff;
	line-height: 80px;
	word-break: keep-all;/* 不换行 */
	white-space: nowrap;/* 不换行 */
}
 /*main---------------------------------------------------*/
/**
 * 页面整体设置
 */
.main {
	display: block;
	margin-top: 50px;
	background-color: #fff !important;
	padding: 3%;
	-moz-box-shadow: inset 0 0.2em 1em 0.2em rgba(205, 255, 246, 0.83);
/* Firefox */
	-webkit-box-shadow: inset 0 0.2em 1em 0.2em rgba(205, 255, 246, 0.83);
 /* Safari 和 Chrome */
	box-shadow: inset 0 0.2em 1em 0.2em rgba(205, 255, 246, 0.83);
	-moz-border-radius: 1em;
 /* Firefox */
	-webkit-border-radius: 1em;
 /* Safari 和 Chrome */
	border-radius: 1em;
 /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
}




@media (min-width:768px) {
	#header .headerBox {
		width: 60%;
	}
}

@media (min-width:992px) {
	#header .headerBox {
		width: 50%;
	}

	.main {
		width: 700px;
		height: 650px;
	}

	.main .row #mainBox {
		margin: 5% 25%;
	}

}

@media(min-width:1200px) {
	#header .headerBox {
		width: 40%;
	}

	.main {
		width: 1200px;
		height: 710px;
	}

	.main .row #mainBox {
		margin: 5% 25%;
	}
}