*{ margin: 0; padding: 0; } html { display: block; overflow-x: hidden; font-size: 100px; } body { font-family: "微软雅黑", Helvetica, STHeiTi, sans-serif; -webkit-text-size-adjust: 100% !important; /*禁止IOS调整字体大小*/ max-width: 750px; margin: 0 auto; padding: .94rem 0 .96rem; font-size: 0.14rem; line-height: 1.5; color: #262626; } ul,ol,li { list-style-type: none; } a { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /*去掉a、input和button点击时的蓝色外边框和灰色半透明背景*/ -webkit-touch-callout: none; /*禁止长按链接与图片弹出菜单*/ text-decoration: none; color: #262626; } img { border: 0; /* 照顾低版本浏览器 如果图片外面包含了链接会有边框的问题 */ vertical-align: middle; /* 取消图片底侧有空白缝隙的问题 ① */ object-fit: cover; /* 取消图片底侧有空白缝隙的问题 ② */ -webkit-touch-callout: none; /*禁止长按链接与图片弹出菜单*/ text-decoration: none; color: #262626; } button,input,select,textarea { border: 0; /* 去掉边框 */ background: none; /* 去掉背景 */ -webkit-appearance: none; /*去掉webkit默认的表单样式*/ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /*去掉a、input和button点击时的蓝色外边框和灰色半透明背景*/ } input::-webkit-input-placeholder { color: #ccc; /*修改webkit中input的planceholder样式*/ } input:focus::-webkit-input-placeholder { color: #f00; /*修改webkit中focus状态下input的planceholder样式*/ } /* flex布局 */ .flex {display: flex;} /* 盒模型 */ .border-box{box-sizing: border-box;} /* 圆角 */ .radius10{border-radius: .10rem;} .radius15{border-radius: .15rem;} .radius20{border-radius: .20rem;} .radius25{border-radius: .25rem;} .radius30{border-radius: .30rem;} .radius35{border-radius: .35rem;} .radius40{border-radius: .40rem;} .radius45{border-radius: .45rem;} .radius50{border-radius: .50rem;} .radius100{border-radius: 100%;} /* 字体 */ .font18{ font-size: .18rem;} .font20{ font-size: .20rem;} .font22{ font-size: .22rem;} .font24{ font-size: .24rem;} .font26{ font-size: .26rem;} .font28{ font-size: .28rem;} .font30{ font-size: .30rem;} .font32{ font-size: .32rem;} .font34{ font-size: .34rem;} .font36{ font-size: .36rem;} .font38{ font-size: .38rem;} .font40{ font-size: .40rem;} .font42{ font-size: .42rem;} .font44{ font-size: .44rem;} .font46{ font-size: .46rem;} .font48{ font-size: .48rem;} .font60{ font-size: .60rem;} /* 文字行数 */ .clips1{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;} .clips2{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;} .clips3{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;} .clips4{display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 4;overflow: hidden;text-overflow: ellipsis;word-wrap: break-word;word-break:break-all;}