/*banner*/ .banner { position: relative; margin-top: -10px; } .banner .container-fluid { padding: 0; } .banner .item { overflow: hidden; } .carousel-inner { top: 0; } .banner .item img { width: 100%; z-index: -1; } /*数字按钮*/ .banner .wrapper .carousel-indicators { position: relative; text-align: right; left: 0; margin-left: 0; width: 100%; bottom: 3%; } .carousel-indicators { z-index: 1; } .carousel-indicators li { /*width: 30px;*/ /*height: 30px;*/ /*background: #997545;*/ /*border-radius: 0;*/ /*border: none;*/ /*color: #fff;*/ /*line-height: 30px;*/ margin-right: 15px; /*padding-right: 10px;*/ background: #fff; border: #fff; } .carousel-indicators li:last-child { margin-right: 0; } .carousel-indicators li.active { /*width: 30px;*/ /*height: 30px;*/ /*background:#fff;*/ /*color: #997545;*/ /*line-height: 30px;*/ margin-right: 15px; background: #997545; border: #997545; } /*banner左右切换按钮背景隐藏*/ /*翻页箭头*/ .carousel-control { margin-top: 260px; width: 14%; } .carousel-control.right, .carousel-control.left { background: transparent; } .carousel-control img { width: 36px; } .banner .wrapper { position: absolute; width: 100%; height: 40px; bottom: 27%; } .banner .carousel-caption { width: 100%; height: 30%; left: 0; right: 0; bottom: 5px; background: rgba(112, 22, 24, .85); padding-top: 10px; } .banner .carousel-caption h3 { margin-top: 0; } .banner .carousel-caption p { word-wrap: break-word; line-height: 1.6; text-align: justify; } .banner .carousel-caption p a { color: #fff; } .banner .carousel-caption .banner-s-box .border { width: 100%; height: 100%; /*border: 2px solid #fff;*/ } .banner .carousel-caption .banner-s { width: 100%; } .carousel-caption > .container { padding: 0; } /*兼容结束*/ .bannersearch { position: absolute; top: 16%; width: 100%; height: auto; } .bannersearch input { width: 24%; height: 40px; background: rgba(255, 255, 255, .8); border: none; border-radius: 5px; text-align: center; color: #000; } .bannersearch form { position: relative; } .bannersearch i { margin-top: -30px; margin-left: -35px; font-size: 22px; color: #333; } .bannersearch input::-webkit-input-placeholder { text-align: center; } /*section1*/ #section1 { padding-bottom: 80px; } #section1 .resources-l-l { padding-right: 0; } #section1 .resources-l-l img { width: 100%; } #section1 .resources-l-2 { height: 100px; position: relative; } #section1 .resources-l-2 a { color: #997545; height: 20px; } #section1 .resources-l-2 .visit { position: absolute; bottom: 8px;; } #section1 .resources-l-2 .visit a { padding: 0 10px; border-right: 1px solid #997545; } #section1 .resources-l-2 .visit a:nth-child(1) { padding-left: 0; } #section1 .resources-l-2 .visit a:last-child { border-right: none; } #section1 .resources-l-2 h5 { margin-top: 0; } #section1 .resources-l-2 .detail { max-height: 36px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } #section1 .resources-l-2 .detail p { line-height: 1.3; margin-bottom: 5px; } #section1 .resources-l-l a { display: block; width: 100%; max-height: 100px; overflow: hidden; color: #997545; } #section1 .resources-l a:hover, #section1 .resources-l a:focus, #section1 .resources-l a:active { color: #8c2c29; width: auto; } #section1 .resources-r ul li { width: 100%; line-height: 3; border-radius: 8px; margin-top: 15px; } #section1 .resources-r ul li a { width: 100%; color: #fff; } #section1 .resources-r ul li i { padding: 0 30px; font-size: 22px; line-height: 42px; } footer { position: static !important; } @media (max-width: 1800px) { .banner .carousel-caption h3 { font-size: 28px; } } @media (max-width: 1700px) { .banner .carousel-caption .paddingtop15 { padding-top: 5px; } } @media (max-width: 1500px) { .banner .carousel-caption h3 { font-size: 26px; } .banner .carousel-caption .paddingtop15 { padding-top: 0px; } .banner .bannersearch i { left: 59%; } } @media (max-width: 1440px) { .banner .carousel-caption p { padding-top: 0px; line-height: 1.4; } .banner .carousel-caption .banner-s-box { height: 140px; overflow: hidden; margin-top: 1%; } .carousel-control { margin-top: 215px; width: 14%; } } @media (max-width: 1280px) { .banner .carousel-caption { padding-top: 10px; padding-bottom: 0; } .banner .carousel-caption p { line-height: 1.3; } .banner .carousel-caption .banner-s-box { height: 140px; overflow: hidden; margin-top: 1%; } .banner .carousel-caption .font16 { font-size: 14px; } .banner .carousel-caption .paddingtop15 { padding-top: 0px; } .banner .carousel-caption .paddingtop30 { padding-top: 0px; } .banner .bannersearch { top: 6%; } .carousel-control { margin-top: 215px; width: 12.5%; } .navbar-right .dropdown-menu { left: -480%; } #section1 .resources-r ul li i { padding: 0 15px; } } @media (max-width: 1024px) { .banner .carousel-caption .banner-s-box { height: 120px; overflow: hidden; } .banner .carousel-caption h3 { font-size: 22px; } } @media (max-width: 991px) { .banner { overflow: hidden; } .banner .wrapper { bottom: 53%; } /*为了在手机上显示banner图为正方形*/ .carousel-inner > .item > a { width: 130%; } .banner .item img { width: 130%; margin-left: -10%; } .banner .carousel-caption { background: rgba(112, 22, 24, 1);; position: relative; height: 242px; bottom: -20%; } .banner .carousel-caption p { padding-top: 0; font-size: 12px; } .banner .carousel-caption .pt30 { padding-top: 15px; } .banner .carousel-indicators { margin-top: 24%; text-align: center !important; } .banner .carousel-indicators li { width: 15px; height: 15px; border-radius: 50%; } /*banner不在沉于nav下*/ .banner { margin-top: 0; } .banner .bannersearch i { font-size: 18px; } /*resource竖排显示文字距离图片一定高度*/ .resources-l-2 { margin-top: 10px; } /*轮播内部内容*/ .banner .carousel-caption { padding-top: 0px; padding-bottom: 0; margin-top: -5px; } .banner .carousel-caption h3 { margin-top: 10px; font-size: 14px; } /*轮播第四张内部搜索*/ .banner .bannersearch h3 { font-size: 14px; margin-top: 5px; } .banner .bannersearch .paddingtop15 { padding-top: 0; } .banner .bannersearch .paddingtop30 { padding-top: 5px; } .banner .bannersearch input { width: 40%; height: 24px; } .banner .bannersearch .font68 { font-size: 16px; } } /*pad*/ @media screen and (min-width: 768px) and (max-width: 1023px) { .banner .carousel-caption h3 { margin-top: 10px; font-size: 20px; } .banner .wrapper .carousel-indicators { margin-top: 21%; } .banner .carousel-caption { margin-top: -145px; height: 150px; } .carousel-control { margin-top: 170px; } } @media (max-width: 768px) { .banner .carousel-caption p { text-align: left; } #section1 .resources-l-l { padding-right: 15px; } #section1 .resources-l-l a { max-height: 380px; } #section1 .resources-l-2{ height: 115px; } .font68{ font-size: 34px; } } @media screen and (min-width: 320px) and (max-width: 359px) { .banner .wrapper { bottom: 60%; } .carousel-inner > .item > a { width: 140%; } .banner .item img { width: 140%; margin-left: -12%; } .banner .carousel-caption { height: 190px; } .carousel-control { margin-top: 100px; width: 15%; } .banner .wrapper .carousel-indicators { margin-top: 17%; } } @media screen and (min-width: 360px) and (max-width: 374px) { .banner .carousel-indicators { margin-top: 12%; } .banner .carousel-caption { height: 175px; } .carousel-control { margin-top: 110px; width: 14%; } } @media screen and (min-width: 375px) and (max-width: 411px) { } @media screen and (min-width: 412px) and (max-width: 736px) { } /*6*/ @media (min-device-width: 375px) and (max-device-width: 667px) and (-webkit-min-device-pixel-ratio: 2) { .carousel-control { margin-top: 105px; width: 14%; } .banner .carousel-caption { height: 175px; } .banner .carousel-indicators { margin-top: 3%; } .banner .wrapper .carousel-indicators { margin-top: 17%; } } /*6 */ @media (min-device-width: 414px) and (max-device-width: 736px) and (-webkit-min-device-pixel-ratio: 3) { .carousel-control { margin-top: 105px; width: 14%; } }