ztw.css 3.5 KB

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