12345市长热线标准版-前端

pageSwitch.css 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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: 7px;
  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: 360px;
  50. overflow: hidden;
  51. }
  52. .sections,.section {
  53. height:100%;
  54. }
  55. #container,.sections {
  56. position: relative;
  57. }
  58. .section {
  59. background-color: #000;
  60. background-size: 100% 100%;
  61. background-position: 50% 50%;
  62. text-align: center;
  63. color: white;
  64. }
  65. /*#section0 {
  66. background-image: url('../img/qiehuan.png');
  67. }
  68. #section1 {
  69. background-image: url('../img/qiehuan.png');
  70. }
  71. #section2 {
  72. background-image: url('../img/qiehuan.png');
  73. }
  74. #section3 {
  75. background-image: url('../img/qiehuan.png');
  76. }*/
  77. .section h3{
  78. margin-top: -100px;
  79. background: rgba(128,128,128,.4);
  80. font-size: 16px;
  81. padding: 10px;
  82. text-align: left;
  83. line-height: 10px;
  84. text-align: left;
  85. line-height: 16px;
  86. }
  87. .section img{
  88. width: 500px;
  89. height: 400px;
  90. }
  91. /*banner轮播*/
  92. #bannerContainer {
  93. width: 100%;
  94. overflow: hidden;
  95. }
  96. #bannerContainer #section0 {
  97. background-image: url(../img/banner-img_0.png);
  98. }
  99. #bannerContainer #section1 {
  100. background-image:url(../img/banner-img_1.jpg);
  101. }
  102. #bannerContainer #section2 {
  103. background-image: url(../img/banner-img_2.jpg);
  104. }