Commit bc4db7aa by 林家欣

修改首页要闻左侧轮播图左右箭头不显示问题

parent 293f3f36
...@@ -5,10 +5,8 @@ import router from "./router/index"; ...@@ -5,10 +5,8 @@ import router from "./router/index";
import store from "./vuex/store"; import store from "./vuex/store";
import $ from "jquery"; import $ from "jquery";
import "./assets/css/_reset.css"; import "./assets/css/_reset.css";
// import "bootstrap/dist/css/bootstrap.min.css";
// import "./assets/css/main.scss"; // import "./assets/css/main.scss";
import "./assets/css/layout.scss"; import "./assets/css/layout.scss";
// import "bootstrap/dist/js/bootstrap.min.js";
import "./plugins/element.js"; import "./plugins/element.js";
import "./plugins/qrcode.js"; import "./plugins/qrcode.js";
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
......
...@@ -1415,18 +1415,10 @@ export default { ...@@ -1415,18 +1415,10 @@ export default {
left: 0; left: 0;
&::before { &::before {
background: url("../../assets/image/home/prevArrow-hover.png") no-repeat; // background: url("../../assets/image/home/prevArrow-hover.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
content: ""; content: "";
} }
// &:hover {
// &::before {
// background: url("../../assets/image/home/prevArrow-hover.png")
// no-repeat;
// background-size: 100% 100%;
// }
// }
} }
&.slick-next { &.slick-next {
...@@ -1435,18 +1427,11 @@ export default { ...@@ -1435,18 +1427,11 @@ export default {
justify-content: flex-end; justify-content: flex-end;
&::before { &::before {
background: url("../../assets/image/home/nextArrow-hover.png") no-repeat; // background: url("../../assets/image/home/nextArrow-hover.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
content: ""; content: "";
} }
// &:hover {
// &::before {
// background: url("../../assets/image/home/nextArrow-hover.png")
// no-repeat;
// background-size: 100% 100%;
// }
// }
} }
img { img {
...@@ -1466,6 +1451,7 @@ export default { ...@@ -1466,6 +1451,7 @@ export default {
&::before { &::before {
width: 10px; width: 10px;
height: 18px; height: 18px;
background: url("../../assets/image/home/prevArrow-hover.png") no-repeat;
} }
} }
...@@ -1477,6 +1463,7 @@ export default { ...@@ -1477,6 +1463,7 @@ export default {
&::before { &::before {
width: 10px; width: 10px;
height: 18px; height: 18px;
background: url("../../assets/image/home/nextArrow-hover.png") no-repeat;
} }
} }
} }
...@@ -1513,32 +1500,40 @@ export default { ...@@ -1513,32 +1500,40 @@ export default {
} }
.newsBanner { .newsBanner {
.slick-arrow { .slick-arrow {
width: 40px; width: 40px;
height: 50px; height: 50px;
margin: 0 10px; margin: 0 10px;
position: relative;
&.slick-prev { &.slick-prev {
position: relative; width: 40px;
height: 50px;
&::before { &::before {
width: 9px; width: 9px;
height: 14px; height: 14px;
// background: url("../../assets/image/home/prevArrow-hover.png") position: absolute;
// no-repeat; left: 50%;
// background-size: 100% 100%; top: 50%;
transform: translate(-50%, -50%);
background: url("../../assets/image/home/prevArrow-hover.png")
no-repeat;
} }
} }
&.slick-next { &.slick-next {
position: relative; width: 40px;
height: 50px;
// bottom: 0;
&::before { &::before {
width: 9px; width: 9px;
height: 14px; height: 14px;
// background: url("../../assets/image/home/nextArrow-hover.png") position: absolute;
// no-repeat; left: 50%;
// background-size: 100% 100%; top: 50%;
transform: translate(-50%, -50%);
background: url("../../assets/image/home/nextArrow-hover.png")
no-repeat;
} }
} }
...@@ -1949,7 +1944,6 @@ export default { ...@@ -1949,7 +1944,6 @@ export default {
width: 100%; width: 100%;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
@include ellipsis; @include ellipsis;
a { a {
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
......
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