商丘市柘城县——前端

pageSwitch.css 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. .pages li {
  2. list-style-type: none;
  3. width: 10px;
  4. height: 10px;
  5. border-radius: 50%;
  6. background-color: rgba(128,128,128,.4);
  7. }
  8. .pages li:hover {
  9. box-shadow: 0 0 5px 2px white;
  10. }
  11. .pages li.active {
  12. background-color:white;
  13. }
  14. .pages {
  15. position: absolute;
  16. z-index: 999;
  17. }
  18. /*横屏滑动*/
  19. .pages.horizontal {
  20. right:-36px;
  21. transform: translateX(-50%);
  22. bottom: 36px;
  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,.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: -35px;
  79. width: 210px;
  80. background: rgba(128,128,128,.4)!important;
  81. font-size: 16px;
  82. padding: 10px;
  83. text-align: left;
  84. line-height: 16px;
  85. overflow: hidden;
  86. text-overflow:ellipsis;
  87. white-space: nowrap;
  88. }
  89. .section img{
  90. width: 100%;
  91. height: 282px;
  92. }
  93. /*banner轮播*/
  94. .bannerContainer {
  95. width: 100%;
  96. overflow: hidden;
  97. }
  98. .bannerContainer img{
  99. width: 100%;
  100. height: 100%;
  101. display: block;
  102. font-size: 0;
  103. text-align: center;
  104. }
  105. .carousel-inner>.item>a>img {
  106. width: 100%;
  107. height: 310px;
  108. }
  109. /*
  110. #bannerContainer #section0 {
  111. background-image: url(../img/banner-img_0.png);
  112. }
  113. #bannerContainer #section1 {
  114. background-image:url(../img/banner-img_1.jpg);
  115. }
  116. #bannerContainer #section2 {
  117. background-image: url(../img/banner-img_2.jpg);
  118. }*/