Commit c2cdfcd7 by lmf

优化首页轮播默认初始化展示

parent b5078f4a
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
*/ */
?> ?>
<style> <style>
.banner1{
background: url(/media/carousel/pc/1.jpg) no-repeat center;
}
.banner1,.banner1 >.imgbox, .banner1 >.imgbox > a, .banner1 >.imgbox > a >img{ .banner1,.banner1 >.imgbox, .banner1 >.imgbox > a, .banner1 >.imgbox > a >img{
height: 634px !important; height: 634px !important;
} }
...@@ -13,9 +16,12 @@ ...@@ -13,9 +16,12 @@
padding-top: 2px; padding-top: 2px;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
.banner1{
background: url(/media/carousel/mobile/1.jpg) no-repeat center;
}
.banner1, .banner1 > .imgbox, .banner1 > .imgbox > a, .banner1 > .imgbox > a > img { .banner1, .banner1 > .imgbox, .banner1 > .imgbox > a, .banner1 > .imgbox > a > img {
height: 577px !important; height: 577px !important;
/ / margin-top: 6.5 %; margin-top: 6.5 %;
} }
input#left, input#right { input#left, input#right {
...@@ -38,7 +44,7 @@ ...@@ -38,7 +44,7 @@
} }
} }
</style> </style>
<div class="banner1"></div> <div class="banner1" style="background-color: #f0f0f0;"></div>
<script> <script>
require([ require([
'jquery' 'jquery'
......
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