xsc.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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-xsc.png) center;
  12. background-size: contain;
  13. }
  14. /* 导航 */
  15. .header-nav{
  16. background: url(../images/bg/bg-nav-xsc.jpg)repeat-x center;
  17. }
  18. .header-nav ul{
  19. background-color: transparent;
  20. }
  21. .header-nav li a{
  22. color: #FFFF00;
  23. height: 50px;
  24. line-height: 50px;
  25. }
  26. .header-nav li:hover a {
  27. background-color: #C90303;
  28. }
  29. .header-nav .nav-secondLevel li:hover>a {
  30. background-color: #FF4A4A;
  31. }
  32. /* 主体 */
  33. .content{
  34. margin-top: 15px;
  35. }
  36. .content-row{
  37. display: flex;
  38. justify-content: space-between;
  39. flex-wrap: wrap;
  40. }
  41. .content-item{
  42. width: 49.3%;
  43. box-sizing: border-box;
  44. margin-bottom: 15px;
  45. }
  46. .content-item h2{
  47. height: 36px;
  48. line-height: 36px;
  49. font-size: 16px;
  50. }
  51. .content-item h2 a{
  52. font-weight: normal;
  53. float: right;
  54. color: #fff;
  55. background-color: #C90303;
  56. padding: 0px 14px;
  57. font-size: 14px;
  58. }
  59. .content-item h2 a:hover{
  60. color: #FFFF00;
  61. }
  62. .content-wrap ul li{
  63. height: 36px;
  64. line-height: 36px;
  65. margin: 0 10px;
  66. /* border-bottom: 1px dashed #ccc; */
  67. }
  68. .content-wrap li p{
  69. width: calc(100% - 130px);
  70. overflow: hidden;
  71. text-overflow: ellipsis;
  72. white-space: nowrap;
  73. float: left;
  74. }
  75. .content-wrap .list-time {
  76. float: right;
  77. color: #999;
  78. }
  79. .content-wrap a:hover .list-time {
  80. color: #ff1111;
  81. }
  82. .content-tow-lines {
  83. flex-grow: 2;
  84. }
  85. .content-tow-lines ul{
  86. display: flex;
  87. justify-content: space-between;
  88. flex-wrap: wrap;
  89. }
  90. .content-tow-lines li{
  91. width: 48%;
  92. overflow: hidden;
  93. }
  94. /* 轮播 */
  95. .swiper-pagination-bullet{
  96. width: 16px;
  97. height: 16px;
  98. line-height: 16px;
  99. border-radius: 2px;
  100. font-size: 12px;
  101. text-align: center;
  102. }
  103. .swiper-pagination-bullet-active {
  104. color:#fff;
  105. background: #ff3300;
  106. }
  107. .swiper-container-horizontal>.swiper-pagination-bullets{
  108. text-align: right;
  109. left: -8px;
  110. }
  111. .swiper-slide{
  112. position: relative;
  113. }
  114. .swiper-slide img{
  115. display: block;
  116. width: 100%;
  117. }
  118. .swiper-slide .swiper-title{
  119. position: absolute;
  120. left: 0;
  121. bottom: 0;
  122. height: 34px;
  123. line-height: 34px;
  124. background-color: rgba(0,0,0,.6);
  125. color: #fff;
  126. padding: 0 125px 0 10px;
  127. box-sizing: border-box;
  128. width: 100%;
  129. overflow: hidden;
  130. text-overflow: ellipsis;
  131. white-space: nowrap;
  132. }
  133. /* 列表页 */
  134. .content-list-wrap{
  135. border: 1px solid #C90303;
  136. }
  137. .crumbs{
  138. background-color: #C90303;
  139. color: #fff;
  140. }
  141. .crumbs a{
  142. color: #fff;
  143. }
  144. /* 底部 */
  145. .footer{
  146. background-color: #FFEAEC;
  147. border-top: 1px solid #C90303;
  148. }
  149. .footer-mesg{
  150. background-color: #FFEAEC;
  151. color: #000;
  152. }
  153. /* 响应式 */
  154. @media screen and (max-width: 1024px) {
  155. .content-tow-lines li{
  156. width: 47%;
  157. }
  158. }
  159. @media screen and (max-width: 980px) {
  160. .header-nav{
  161. background-repeat: repeat;
  162. background-position: left top;
  163. }
  164. .header-nav ul{
  165. height: auto;
  166. }
  167. /* flex布局,item元素补全 */
  168. .header-nav ul::after{
  169. content: "";
  170. width: 50%;
  171. }
  172. .content-item{
  173. width: 49.4%;
  174. }
  175. }
  176. @media screen and (max-width: 768px) {
  177. .content-item{
  178. width: 100%;
  179. }
  180. .content-tow-lines li{
  181. width: 100%;
  182. }
  183. }
  184. @media screen and (max-width: 640px) {
  185. .header-img{
  186. width: 100%;
  187. }
  188. .content-wrap li p{
  189. width: calc(100% - 100px);
  190. }
  191. }