码迷,mamicode.com
首页 > Web开发 > 详细

css reset及部分layout样式

时间:2015-07-18 18:19:37      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:

@charset "utf-8";

/*reset css for PC*/
body,div{
	-moz-box-sizing: border-box;
  	-webkit-box-sizing: border-box;
  	box-sizing: border-box;
}

body, dl, dd, h1, h2, h3, h4, h5, h6, form{
	margin:0;
}

body, p, input, textarea, select, button {
  font-family: ‘Hiragino Sans GB‘,‘\5fae\8f6f\96c5\9ed1‘,arial,DroidSansFallback,sans-serif,simsun;
  /*解决移动设备滑动阻滞的问题*/
  -webkit-overflow-scrolling: touch;
}

ol,ul{
	margin:0;
	padding:0;
	list-style:inside none;
}

input[type=‘submit‘], input[type=‘button‘], input[type=‘reset‘],a {
  cursor: pointer;
}

textarea {
  resize: vertical;
}


a:link, a:visited {
	 text-decoration: none;
}

p{ 
  text-align: justify;
  word-break: break-word;
}

i, em, address {
  font-style: normal;
}

table {
  border-collapse: collapse;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  vertical-align: middle;
}

header, section, article, aside, footer, nav, dialog, figure {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
  /*IE下图片缩放失真的解决方法*/
  -ms-interpolation-mode: bicubic;
}

blockquote, q {
	 quotes: none;
} 
 blockquote:before, blockquote:after, q:before, q:after { 
 	content: ‘‘;
 	content: none; 
 } 

:focus{
    outline:0;
}
::selection {
  background: #e57779;
  color: #fff;
}

::-moz-selection {
  background: #e57779;
  color: #fff;
}

/*form placeholder*/
:-moz-placeholder { /* Firefox 18- */}
::-moz-placeholder {/* Firefox 19+ */}



/*layout css*/
.wrap {
  width: 1000px;
  margin: 0 auto;
}

.limit {
  width: 100%;
  overflow: hidden;
}
.pr {
  position: relative;
  z-index: 0;
}

.pa {
  position: absolute;
}

.fl {
  float: left;
  _display: inline;/*IE6 解决双边距问题*/
}

.fr {
  float: right;
  _display: inline;/*IE6 解决双边距问题*/
}

.clearfix:after, .tolist:after {
	content:"\200B";
	display:block;
	height:0;
	clear:both;
}

.tolist li {
  float: left;
  display: block;
}

.tolist li:last-child {
  margin-right: 0 !important;
}

.radius {
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
}

.ellipsis {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*WebKit*/
.ellipsis_3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.opacity_bg {
  background: rgba(0, 0, 0, 0.8);
  filter: progid:DXImageTransform.Microsoft.gradient(startcolorstr=#AF000000,endcolorstr=#AF000000,gradientType=1);
  /*filter:alpha(opacity=50);*/
  /*-moz-opacity:0.5;*/
  /*-khtml-opacity:0.5;*/
  /*opacity: 0.5;*/
}


/*page*/
.page {
  padding: 30px 0 60px 0;
  text-align: center;
}

.pages{ 
	display: inline-block;
}
.pages a {
  display: inline-block;
  color: #999;
  font-family: simsun;
  padding: 1px 15px;
  border: 1px solid #bdbdbd;
}

.pages .on,.pages a:hover {
  border: 1px solid #00B786;
  color: #FFFFFF;
  background: #00B786;
}

.page .prev,.page .next,.page .prev a,.page .next a{ font-size: 14px; color: #999; font-family: simsun; display: inline-block;}
.page .prev{ float: left;}
.page .next{ float: right;}
.page .prev a,.page .next a{ color: #79503E;}
.page .prev a:hover,.page .next a:hover{ text-decoration: underline;}

  

css reset及部分layout样式

标签:

原文地址:http://www.cnblogs.com/BaishangBloom/p/4657241.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!