Sin descripción

pageSwitch.css 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. .pages li {
  2. list-style-type: none;
  3. width: 25px;
  4. height: 14px;
  5. background-color: rgba(128, 128, 128, .4);
  6. }
  7. .pages li:hover {
  8. box-shadow: 0 0 5px 2px white;
  9. }
  10. .pages li.active {
  11. background-color: orange;
  12. box-shadow: 0 0 5px 2px orange;
  13. }
  14. .pages {
  15. position: absolute;
  16. z-index: 999;
  17. }
  18. /*横屏滑动*/
  19. .pages.horizontal {
  20. right: -90px;
  21. transform: translateX(-50%);
  22. bottom: 5px;
  23. }
  24. .bannerContainer .pages.horizontal {
  25. display: none;
  26. }
  27. .pages.horizontal li {
  28. display: inline-block;
  29. margin-right: 10px;
  30. }
  31. .pages.horizontal li:last-child {
  32. margin-right: 0;
  33. }
  34. /*竖屏滑动*/
  35. /*.pages.vertical {
  36. right: 5px;
  37. top: 50%;
  38. transform: translateY(-50%);
  39. }
  40. .pages.vertical li {
  41. margin-bottom: 10px;
  42. }
  43. .pages.vertical li:last-child {
  44. margin-bottom: 0;
  45. }*/
  46. /*小轮播*/
  47. #container {
  48. width: 100%;
  49. height: 310px;
  50. overflow: hidden;
  51. }
  52. .sections,
  53. .section {
  54. height: 100%;
  55. }
  56. #container,
  57. .sections {
  58. position: relative;
  59. }
  60. .section {
  61. background-color: #000;
  62. background-size: 100% 100%;
  63. background-position: 50% 50%;
  64. text-align: center;
  65. color: white;
  66. }
  67. /*#section0 {
  68. background-image: url('../img/qiehuan.png');
  69. }
  70. #section1 {
  71. background-image: url('../img/qiehuan.png');
  72. }
  73. #section2 {
  74. background-image: url('../img/qiehuan.png');
  75. }
  76. #section3 {
  77. background-image: url('../img/qiehuan.png');
  78. }*/
  79. .section h3 {
  80. margin-top: -35px;
  81. width: 210px;
  82. background: rgba(128, 128, 128, .4)!important;
  83. font-size: 16px;
  84. padding: 10px;
  85. text-align: left;
  86. line-height: 16px;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. white-space: nowrap;
  90. }
  91. .section img {
  92. width: 100%;
  93. height: 310px;
  94. }
  95. /*banner轮播*/
  96. .bannerContainer {
  97. width: 100%;
  98. overflow: hidden;
  99. }
  100. .bannerContainer img {
  101. width: 100%;
  102. height: 100%;
  103. display: block;
  104. font-size: 0;
  105. text-align: center;
  106. }
  107. /*
  108. #bannerContainer #section0 {
  109. background-image: url(../img/banner-img_0.png);
  110. }
  111. #bannerContainer #section1 {
  112. background-image:url(../img/banner-img_1.jpg);
  113. }
  114. #bannerContainer #section2 {
  115. background-image: url(../img/banner-img_2.jpg);
  116. }*/
  117. /*小轮播样式*/
  118. .carousel-inner>.item>a>img {
  119. width: 100%;
  120. height: 310px;
  121. }
  122. .carousel-indicators li {
  123. width: 15px;
  124. height: 15px;
  125. margin-right: 10px;
  126. line-height: 16px!important;
  127. background-color: rgba(128, 128, 128, .4);
  128. }
  129. .carousel-indicators {
  130. bottom: 0;
  131. /*right: 0;*/
  132. right: 2%;
  133. margin-bottom: 0px;
  134. line-height: 32px;
  135. }
  136. .carousel-indicators li.active {
  137. /*width: 15px;
  138. height: 14px;*/
  139. /*margin-right: 10px;*/
  140. /*border: none;
  141. border-radius: 0;*/
  142. border: 2px solid #ff4900;
  143. color: #FF4900;
  144. /*background-color: orange;*/
  145. /*box-shadow: 0 0 5px 2px orange;*/
  146. }
  147. .carousel-caption {
  148. left: 0;
  149. right: 0;
  150. bottom: 0;
  151. padding-top: 0px;
  152. padding-bottom: 0px;
  153. }
  154. .carousel-caption p {
  155. width: 95%;
  156. text-align: center;
  157. margin: 0 auto;
  158. font-size: 16px;
  159. /*padding: 10px;*/
  160. line-height: 16px;
  161. overflow: hidden;
  162. text-overflow: ellipsis;
  163. white-space: nowrap;
  164. }