响应式完成

master
Lee 2022-10-09 10:15:51 +08:00
parent fb81e31ac5
commit e6a6f42f38
2 changed files with 185 additions and 62 deletions

View File

@ -17,6 +17,8 @@
-webkit-appearance: none; -webkit-appearance: none;
/* 去掉点击时的默认外观 */ /* 去掉点击时的默认外观 */
outline-style: none; outline-style: none;
/* 去除点击出现背景 */
-webkit-tap-highlight-color:transparent;
} }
body { body {

View File

@ -867,7 +867,7 @@
} }
.history .txt { .history .txt {
width: calc(100% - 590px); width: calc(60% - 40px);
} }
.history-title { .history-title {
@ -956,7 +956,7 @@
} }
.history .img { .history .img {
width: 550px; width: 40%;
margin-top: 168px; margin-top: 168px;
} }
@ -1153,7 +1153,7 @@
.activities-list .activities-item>.img>img { .activities-list .activities-item>.img>img {
width: 100%; width: 100%;
min-height: 222px; min-height: 100%;
transition: all .6s; transition: all .6s;
} }
@ -1242,6 +1242,7 @@
.preview-item .img>img { .preview-item .img>img {
width: 100%; width: 100%;
min-height: 100%;
transition: all .6s; transition: all .6s;
} }
@ -1577,7 +1578,7 @@
.news-item .img>img { .news-item .img>img {
width: 100%; width: 100%;
min-height: 240px; min-height: 100%;
transition: all .6s; transition: all .6s;
} }
@ -2456,13 +2457,186 @@
display: none; display: none;
} }
} }
@media screen and (max-width:1440px) { @media screen and (max-width:1520px) {
.w1360{ .w1360{
width: 90% !important; width: 90% !important;
} }
} }
@media screen and (max-width:1360px){
.preview-swiper .swiper-slide{
width: 84%;
margin: 0 15px;
}
.preview-swiper .swiper-button-prev{
left: 2.5%;
}
.preview-swiper .swiper-button-next{
right: 2.5%;
}
.services-list .item{
height: 420px;
}
}
@media screen and (max-width:1280px) { @media screen and (max-width:1280px) {
.nav>a{
margin-left: 30px;
}
.sub-nav>a{
margin-left: 35px;
}
.foot-left .item{
margin-left: 60px;
}
.banner-txt .title{
font-size: 50px;
}
.banner-txt .sub-title{
font-size: 28px;
}
.project-case-list>a>.img{
height: 175px;
}
.culture-info{
line-height: 1.8;
}
.red-property-case>a>.img{
height: 235px;
}
.complaint .left{
width: 280px;
}
.complaint .right{
width: calc(100% - 320px);
}
.services-list .item{
height: 390px;
}
.activities-list .activities-item>.txt{
padding: 20px;
}
.activities-list .activities-item{
height: 200px;
}
.news-first .info{
min-height: 124px;
}
.news-item .img{
height: 210px;
}
.news-item .time-bg{
height: 210px;
}
}
@media screen and (max-width:1220px) {
.foot{
position: relative;
padding-bottom: 50px;
}
.record-info{
display: flex;
justify-content: center;
width: 100%;
position: absolute;
left: 0;
bottom: 0;
z-index: 1;
}
.banner-txt .title{
font-size: 46px;
}
.banner-txt .sub-title{
font-size: 26px;
}
.index-service .left-service p, .index-service .right-service>a>p{
font-size: 18px;
}
.index-service .left-service span, .index-service .right-service>a>span{
font-size: 16px;
}
.project-case-list>a>.img{
height: 165px;
}
.red-property-case>a>.img{
height: 220px;
}
.enterprise-list .item .txt{
padding: 15px;
}
.activities-list .activities-item>.txt{
padding: 15px;
}
.activities-list .activities-item{
height: 190px;
}
.news-first .info{
min-height: 120px;
}
.news-item .img{
height: 200px;
}
.news-item .time-bg{
height: 200px;
}
}
@media screen and (max-width:1100px) {
.banner-txt .title{
font-size: 42px;
}
.banner-txt .sub-title{
font-size: 24px;
}
.index-service .left-service p, .index-service .right-service>a>p{
font-size: 17px;
}
.index-service .left-service span, .index-service .right-service>a>span{
font-size: 15px;
}
}
/* 非手机端隐藏 */
@media screen and (min-width:960px) {
/* 仅手机端展示 */
.wap-show {
display: none !important;
}
/* 隐藏pc端图片 */
.wap-img {
display: none !important;
}
}
/* 手机端样式 */
@media screen and (max-width:960px) {
body {
padding-top: .9rem;
}
html {
font-size: 100px;
}
.w1360 {
width: 94% !important;
}
/* 仅pc端展示 */
.pc-show {
display: none !important;
}
/* 隐藏pc端图片 */
.pc-img {
display: none !important;
}
/* 头部 */ /* 头部 */
.header-white { .header-white {
background-color: #f2f5fa; background-color: #f2f5fa;
@ -2604,10 +2778,12 @@
/* 尾部 */ /* 尾部 */
.footer { .footer {
padding-top: 0; padding-top: 0;
padding-bottom: 15px;
} }
.foot { .foot {
flex-wrap: wrap; flex-wrap: wrap;
padding-bottom: 0;
} }
.foot-left { .foot-left {
@ -2679,68 +2855,13 @@
} }
.record-info { .record-info {
display: block;
width: 100%; width: 100%;
font-size: .24rem; font-size: .24rem;
line-height: 1.5; line-height: 1.5;
text-align: center; text-align: center;
margin-top: .15rem; margin-top: .15rem;
} position: static;
/* 内容 */
.project-case-list>a>.img{
height: 175px;
}
.culture-info{
line-height: 1.8;
}
.red-property-case>a>.img{
height: 235px;
}
.complaint .left{
width: 280px;
}
.complaint .right{
width: calc(100% - 320px);
}
}
/* 非手机端隐藏 */
@media screen and (min-width:960px) {
/* 仅手机端展示 */
.wap-show {
display: none !important;
}
/* 隐藏pc端图片 */
.wap-img {
display: none !important;
}
}
/* 手机端样式 */
@media screen and (max-width:960px) {
body {
padding-top: .9rem;
}
html {
font-size: 100px;
}
.w1360 {
width: 94% !important;
}
/* 仅pc端展示 */
.pc-show {
display: none !important;
}
/* 隐藏pc端图片 */
.pc-img {
display: none !important;
} }
/* banner */ /* banner */