xybgs.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. body{
  2. color: #000;
  3. }
  4. a{
  5. color: #000;
  6. }
  7. a:hover{
  8. color: #ff1111;
  9. }
  10. .header-top{
  11. background: url(../images/bg/bg-header-xybgs.jpg) center;
  12. background-size: contain;
  13. }
  14. /* 导航 */
  15. .header-nav{
  16. background-color: #C90303;
  17. }
  18. .header-nav li a{
  19. height: 50px;
  20. line-height: 50px;
  21. }
  22. /* 主体 */
  23. .content{
  24. margin-top: 10px;
  25. }
  26. .content-row{
  27. display: flex;
  28. justify-content: space-between;
  29. flex-wrap: wrap;
  30. }
  31. .content-item{
  32. width: 32.7%;
  33. box-sizing: border-box;
  34. border: 1px solid #C90303;
  35. margin-bottom: 10px;
  36. }
  37. .content-item h2{
  38. height: 34px;
  39. line-height: 34px;
  40. background: url(../images/bg/bg-title.jpg) no-repeat;
  41. background-size: cover;
  42. color: #fff;
  43. font-size: 14px;
  44. padding: 0 12px 0 35px;
  45. }
  46. .content-item h2 a{
  47. font-weight: normal;
  48. float: right;
  49. color: #C90303;
  50. }
  51. .content-item h2 a:hover{
  52. color: #ff1111;
  53. }
  54. .content-wrap ul li{
  55. height: 36px;
  56. line-height: 36px;
  57. margin: 0 10px;
  58. border-bottom: 1px dashed #ccc;
  59. }
  60. .content-wrap li p{
  61. width: 100%;
  62. overflow: hidden;
  63. text-overflow: ellipsis;
  64. white-space: nowrap;
  65. padding: 0 8px;
  66. }
  67. /* 轮播 */
  68. .swiper-pagination-bullet{
  69. width: 16px;
  70. height: 16px;
  71. line-height: 16px;
  72. border-radius: 2px;
  73. font-size: 12px;
  74. text-align: center;
  75. }
  76. .swiper-pagination-bullet-active {
  77. color:#fff;
  78. background: #ff3300;
  79. }
  80. .swiper-container-horizontal>.swiper-pagination-bullets{
  81. text-align: right;
  82. left: -8px;
  83. }
  84. .swiper-slide{
  85. position: relative;
  86. }
  87. .swiper-slide img{
  88. display: block;
  89. width: 100%;
  90. }
  91. .swiper-slide .swiper-title{
  92. position: absolute;
  93. left: 0;
  94. bottom: 0;
  95. height: 34px;
  96. line-height: 34px;
  97. background-color: rgba(0,0,0,.6);
  98. color: #fff;
  99. padding: 0 125px 0 10px;
  100. box-sizing: border-box;
  101. width: 100%;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. }
  106. /* 列表页 */
  107. .content-list-wrap{
  108. border: 1px solid #C90303;
  109. }
  110. .crumbs{
  111. background-color: #C90303;
  112. color: #fff;
  113. }
  114. .crumbs a{
  115. color: #fff;
  116. }
  117. /* 底部 */
  118. .footer{
  119. background-color: #C90303;
  120. }
  121. /* 响应式 */
  122. @media screen and (max-width: 980px) {
  123. .header-nav ul{
  124. height: auto;
  125. }
  126. /* flex布局,item元素补全 */
  127. .header-nav ul::after{
  128. content: "";
  129. width: 50%;
  130. }
  131. .content-item{
  132. width: 49.4%;
  133. }
  134. }
  135. @media screen and (max-width: 640px) {
  136. .header-img{
  137. width: 100%;
  138. }
  139. .content-item{
  140. width: 100%;
  141. }
  142. .content-item:nth-child(2){
  143. order: -1;
  144. }
  145. }