@charset "UTF-8"; .pic{position: relative;} .pic:before{display: block;content: '';padding-top: 60%;} .pic img{position: absolute;width: 100%;height: 100%;left: 0;top: 0;object-fit: cover; object-position: center center;} /* 内盒子代码 */ .box-size{ box-sizing: border-box; -webkit-box-sizing: border-box;} /* 左浮动 */ .fl {float: left;display: inline;} /* 右浮动 */ .fr {float: right;display: inline;} /* 设置图片经过放大 */ .imghover .pic{ overflow:hidden;} .imghover img{ overflow:hidden; transition: all 0.3s linear; -webkit-transition: all 0.3s linear;} .imghover:hover img{ transform:scale(1.05); -webkit-transform:scale(1.05);} /* 设置表格方式垂直居中 */ .table{ display: table; width: 100%; height: 100%;table-layout:fixed} .tableCell{ display: table-cell; width: 100%; height: 100%; vertical-align: middle;} /* 设置默认图 */ .default{ background: #e5e5e5 url(../images/default.png) no-repeat center center;} /* 规定页面内容区域宽度 */ .wrap{width: 1440px;clear: both;margin: 0 auto;} /* 清除浮动 */ .clear {clear: both;overflow:hidden;height: 0;} .clearC:after {display: block;content: ' ';clear: both;visibility: hidden;} .clearfix:after,.clearfix:before{content:"";display:table;} .clearfix:after{clear:both;} .clearfix{*zoom:1;/* *号代表ie6.7能识别的特殊符号 zoom就是ie6.7清除浮动的方法*/} /* 自定义页面间距 */ .h5 {clear: both;height: 5px;} .h10 {clear: both;height: 10px;} .h15 {clear: both;height: 15px;} .h20 {clear: both;height: 20px;} .h25 {clear: both;height: 25px;} .h30 {clear: both;height: 30px;} .h35 {clear: both;height: 35px;} .h40 {clear: both;height: 40px;} .h45 {clear: both;height: 45px;} .h50 {clear: both;height: 50px;} .h55 {clear: both;height: 55px;} .h60 {clear: both;height: 60px;} .h65 {clear: both;height: 65px;} .h70 {clear: both;height: 70px;} .h75 {clear: both;height: 75px;} .h80 {clear: both;height: 80px;} .h85 {clear: both;height: 85px;} .h90 {clear: both;height: 90px;} .h95 {clear: both;height: 95px;} .h100 {clear: both;height:100px;} /* 最小高度 */ .minH600{min-height:600px;height: auto !important;height: 600px;} /* 设置默认背景色 */ .hui {background: #f2f2f2;} .bai {background: #fff;} /*截字数*/ .clamp1{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 1 !important;-webkit-box-orient: vertical;overflow: hidden;} .clamp2{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 2 !important;-webkit-box-orient: vertical;overflow: hidden;} .clamp3{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 3 !important;-webkit-box-orient: vertical;overflow: hidden;} .clamp4{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 4 !important;-webkit-box-orient: vertical;overflow: hidden;} .clamp5{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 5 !important;-webkit-box-orient: vertical;overflow: hidden;} .clamp6{word-break: break-all;display: -webkit-box !important;-webkit-line-clamp: 6 !important;-webkit-box-orient: vertical;overflow: hidden;}