Commit c592fdf8 authored by zxw's avatar zxw

适配

parent 5b9fba8d
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
<img <img
class="img-class" class="img-class"
src="../../assets/icons/logo1.png" src="../../assets/icons/logo1.png"
@click="logoClick"> @click="logoClick"
>
</router-link> </router-link>
</el-menu-item> </el-menu-item>
<el-menu-item index="1" class="header-title" style="border-bottom: none;"> <el-menu-item index="1" class="header-title" style="border-bottom: none;">
...@@ -235,7 +236,7 @@ export default { ...@@ -235,7 +236,7 @@ export default {
} }
.container { .container {
width: 1920px; //width: 1920px;
box-sizing: border-box; box-sizing: border-box;
margin-top: 90px; /* 让页面内容避开导航栏 */ margin-top: 90px; /* 让页面内容避开导航栏 */
} }
...@@ -362,7 +363,7 @@ export default { ...@@ -362,7 +363,7 @@ export default {
} }
.header-model-el-menu { .header-model-el-menu {
width: 1920px; //width: 1920px;
height: 25px; height: 25px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -423,30 +424,6 @@ export default { ...@@ -423,30 +424,6 @@ export default {
align-items: center; /* 垂直居中对齐内容 */ align-items: center; /* 垂直居中对齐内容 */
} }
@media (min-width: 1920px) {
.header-title-img {
border-bottom: none;
margin-top: -10px;
margin-right: 100px;
}
.header-title {
border: 0;
font-weight: 700;
font-size: 18px;
min-width: 72px;
height: 25px;
font-family: "PingFang SC";
font-style: normal;
line-height: normal;
padding: 0 45px;
}
.img-class {
width: 186px;
height: 56px;
}
}
.mobile_menu { .mobile_menu {
background-color: transparent; /* 设置背景色为完全透明 */ background-color: transparent; /* 设置背景色为完全透明 */
...@@ -500,7 +477,7 @@ a:active { ...@@ -500,7 +477,7 @@ a:active {
background-image: url('../../assets/images/yejiao_bg.jpg'); background-image: url('../../assets/images/yejiao_bg.jpg');
background-size: cover; background-size: cover;
background-position: center; background-position: center;
width: 1920px; //width: 1920px;
height: auto; height: auto;
padding-bottom: 20px; padding-bottom: 20px;
font-family: "PingFangSC-Regular"; font-family: "PingFangSC-Regular";
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<div class="container1"> <div class="container1">
<div style="background-color: #F4F7FC;"> <div style="background-color: #F4F7FC;">
<div class="swiper"> <div class="swiper">
<el-carousel :interval="5000" class="swiper_carousel" arrow="never"> <el-carousel :interval="5000" class="swiper_carousel" >
<el-carousel-item v-for="item in imgList" :key="item.id" class="swiper_carousel"> <el-carousel-item v-for="item in imgList" :key="item.id" class="swiper_carousel">
<img :src="item.url"> <img class="carouselImg" :src="item.url">
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.page-container { .page-container {
width: 1920px; //width: 1920px;
margin-left: auto; /* 左右自动边距,用于居中 */ margin-left: auto; /* 左右自动边距,用于居中 */
margin-right: auto; /* 左右自动边距,用于居中 */ margin-right: auto; /* 左右自动边距,用于居中 */
display: flex; display: flex;
...@@ -392,13 +392,19 @@ export default { ...@@ -392,13 +392,19 @@ export default {
} }
.container1 { .container1 {
width: 1920px //width: 1920px
} }
.swiper { .swiper {
height: 680px; height: 680px;
} }
::v-deep .el-carousel__container{
height: 100%!important;
}
.carouselImg{
width: 100%;
height: 100%;
}
.swiper_carousel { .swiper_carousel {
height: 680px; height: 680px;
} }
......
...@@ -2,7 +2,7 @@ import Vue from 'vue' ...@@ -2,7 +2,7 @@ import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import moment from 'moment' import moment from 'moment'
import Element from 'element-ui' import Element from 'element-ui'
// import './utils/rem.js' // 自适应分辨率 import './utils/rem.js' // 自适应分辨率
// import ElementUI from 'element-ui' // import ElementUI from 'element-ui'
// import './styles/element-variables.scss' // import './styles/element-variables.scss'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n // import locale from 'element-ui/lib/locale/lang/en' // lang i18n
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment