farmHomePage.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. .header{
  2. height: 470px;
  3. }
  4. /* 轮播 */
  5. .sliderBox,.banner{
  6. height: 470px;
  7. }
  8. .slider1{
  9. background: url(../imgs/banner1.jpg) no-repeat center;
  10. background-size: cover;
  11. }
  12. .slider2{
  13. background: url(../imgs/banner2.jpg) no-repeat center;
  14. background-size: cover;
  15. }
  16. .slider3{
  17. background: url(../imgs/banner3.jpg) no-repeat center;
  18. background-size: cover;
  19. }
  20. span.swiper-pagination-bullet{
  21. width: 30px;
  22. border-radius: 0;
  23. }
  24. span.swiper-pagination-bullet-active{
  25. background: #3ab851;
  26. }
  27. /* */
  28. .captionBox .captionTxtEn{
  29. color: #3ab851;
  30. margin-bottom: 25px;
  31. }
  32. /* */
  33. .swiperDiv{
  34. width: 200px;
  35. }
  36. /* 农场基地简介 */
  37. .baseInfo{
  38. width: 35%;
  39. }
  40. .farmInfo p{
  41. font-size: 14px;
  42. line-height: 33px;
  43. }
  44. .farmSite{
  45. width: 330px;
  46. height: 330px;
  47. border: 1px solid;
  48. margin-top: 30px;
  49. }
  50. .farmSite >div{
  51. width: 100%;
  52. height: 100%;
  53. }
  54. /* 农场介绍 */
  55. .farmShow{
  56. width: 65%;
  57. }
  58. .photos{
  59. height: 440px;
  60. }
  61. .photos .swiper-slide img{
  62. width: 190px;
  63. height: 135px;
  64. box-sizing: border-box;
  65. }
  66. /* 轮播按钮位置 */
  67. div.swiper-button-next{
  68. right: 50%;
  69. /* transform: rotate(90deg); */
  70. bottom: 11px;
  71. width: 32px;
  72. height: 32px;
  73. top: auto;
  74. margin-right: -12px;
  75. }
  76. div.swiper-button-prev{
  77. left: 50%;
  78. /* transform: rotate(90deg); */
  79. width: 32px;
  80. height:32px;
  81. top: 26px;
  82. margin-left: -12px;
  83. }
  84. div.swiper-button-next{
  85. background-image: url(../imgs/arrowsNext.png);
  86. background-size: 32px 32px;
  87. }
  88. div.swiper-button-prev{
  89. background-image: url(../imgs/arrowsPrev.png);
  90. background-size: 32px 32px;
  91. }
  92. .magnifyDiv{
  93. width: 532px;
  94. height: 440px;
  95. background-color: #eee;
  96. border: 1px solid #c6c6c6;
  97. /* background-image: url(../imgs/dorm/dorm1.jpg); */
  98. background-repeat: no-repeat;
  99. background-size: cover;
  100. background-position: center;
  101. margin: 0 15px 0 15px;
  102. }
  103. .magnifyDiv >img{
  104. width: 100%;
  105. height: 100%;
  106. background: #fff;
  107. }
  108. .introTxt{
  109. line-height: 33px;
  110. text-indent: 30px;
  111. }
  112. .introduce{
  113. margin-left: 60px;
  114. }
  115. .introduce h2{
  116. padding-top: 30px;
  117. line-height: 42px;
  118. font-size: 14px;
  119. color: #000;
  120. }
  121. .introduce p{
  122. line-height: 30px;
  123. color: #6c6c6c;
  124. }
  125. .introduce .price{
  126. line-height: 80px;
  127. font-size: 16px;
  128. font-weight: 700;
  129. letter-spacing: 4px;
  130. padding-bottom: 8px;
  131. }
  132. .introduce .price strong{
  133. font-size: 30px;
  134. }
  135. /* 农场公告 */
  136. /* 新闻 */
  137. .farmNewsNotice{
  138. width: 45%;
  139. }
  140. .newsListDiv{
  141. width: 95%;
  142. height: 245px;
  143. }
  144. .newsList >li{
  145. font-size: 12px;
  146. line-height: 34px;
  147. }
  148. .newsList >li .date{
  149. float: right;
  150. }
  151. .newsList >li .describe{
  152. margin-right: 80px;
  153. }
  154. .newsList >li .describe a{
  155. display: block;
  156. overflow: hidden;
  157. white-space: nowrap;
  158. text-overflow: ellipsis;
  159. font-size: 12px;
  160. }
  161. /* 视频资讯 */
  162. .farmVideoNotice{
  163. width: 55%;
  164. }
  165. /* 视频资讯列表 */
  166. .videoBox{
  167. width: 60%;
  168. }
  169. .videoBoxTxt{
  170. width: 40%;
  171. line-height: 30px;
  172. overflow: hidden;
  173. height: 224px;
  174. position: relative;
  175. }
  176. .videoBoxTxt h2{
  177. font-size: 16px;
  178. font-weight: 700;
  179. line-height: 40px;
  180. }
  181. .videoBoxTxt .moreBtn{
  182. position: absolute;
  183. bottom: 0;
  184. background: white;
  185. left: 0;
  186. right: 0;
  187. text-align: right;
  188. padding-right: 10px;
  189. }
  190. .videoBoxTxt .moreBtn a:hover{
  191. color: #3ab851;
  192. }
  193. /* 产品展厅 */
  194. .productShowUl{
  195. overflow: hidden;
  196. padding: 0 18px;
  197. }
  198. .productShowUl >li{
  199. float: left;
  200. width: 272px;
  201. height: 211px;
  202. margin-right: 25px;
  203. margin-bottom: 25px;
  204. }
  205. .productShowUl >li:nth-child(4),.productShowUl >li:nth-child(8){
  206. margin: 0;
  207. }
  208. .productShowUl >li .productItem{
  209. position: relative;
  210. overflow: hidden;
  211. cursor: pointer;
  212. }
  213. .productShowUl >li .productItem >img{
  214. width: 272px;
  215. height: 209px;
  216. }
  217. .productShowUl >li .productItem:hover .maskBox{
  218. top: 0px;
  219. }
  220. .productShowUl >li .productItem .maskBox{
  221. position: absolute;
  222. left: 0;
  223. right: 0;
  224. top: 209px;
  225. bottom: 0;
  226. background: rgba(0, 0, 0, 0.5);
  227. color: #fff;
  228. padding: 30px 20px;
  229. line-height: 22px;
  230. transition: all .3s;
  231. }
  232. /* 返回顶部 */
  233. .back2top {
  234. width: 58px;
  235. height: 58px;
  236. position: fixed;
  237. _position: absolute;
  238. left: 52%;
  239. margin-left: 600px;
  240. bottom: 100px;
  241. _bottom: auto;
  242. cursor: pointer;
  243. display: none;
  244. }
  245. .back2top a {
  246. display: block;
  247. width: 100%;
  248. height: 100%;
  249. background: url(../imgs/goUp.png) no-repeat;
  250. }
  251. .back2top a:hover{
  252. background: url(../imgs/goUp.png) no-repeat -58px 0;
  253. }