1. *{
    2. margin: 0;
    3. padding: 0;
    4. }
    5. @font-face{
    6. font-family: 'iconfont';
    7. src:url('img/font/iconfont.eot');
    8. src:url('img/font/iconfont.eot') format('embedded-opentype'),
    9. url('img/font/iconfont.woff') format('woff'),
    10. url('img/font/iconfont.ttf') format('truetype'),
    11. url('img/font/iconfont.svg#iconfont') format('svg');
    12. }
    13. body{
    14. font-family: "微软雅黑";
    15. color: #14191e;
    16. }/*以上为设置字体来显示箭头的字体位置*/
    17. a{
    18. text-decoration: none;/*去掉下划线*/
    19. }
    20. a:link,a:visited{
    21. color: #5e5e5e;/*以访问和未访问样式*/
    22. }
    23. .main{
    24. width: 1200px;
    25. height: 460px;
    26. margin: 30px auto;
    27. overflow: hidden;/*图片溢出的部分进行影藏*/
    28. /*这里的影藏等会儿会被js设置对应图片显示的效果*/
    29. position: relative;
    30. }
    31. /*据点图*/
    32. .banner{
    33. width:1200px;
    34. height: 460px;
    35. }
    36. .banner-slide{
    37. width: 1200px;
    38. height: 460px;
    39. float: left;
    40. background-repeat: no-repeat;/*使图片不重复*/
    41. display: none;/*先将图片隐藏来帮助前后箭头显示图片*/
    42. }
    43. .slide-active{
    44. display: block;
    45. }
    46. .slide1{
    47. background-image: url(img/bg1.jpg);
    48. }
    49. .slide2{
    50. background-image: url(img/bg2.jpg);
    51. }
    52. .slide3{
    53. background-image: url(img/bg3.jpg);
    54. }
    55. .button{/*箭头显示*/
    56. position: absolute;/*定位*/
    57. width: 40px;
    58. height: 80px;
    59. left: 244px;/*为了给左边的表格空出位置*/
    60. background: url(img/arrow.png) center center no-repeat;
    61. top: 50%;
    62. margin-top:-40px;/*调整箭头位置*/
    63. transform: rotate(180deg);/*给箭头旋转180度*/
    64. }
    65. .button:hover{/*用类选择器给前后箭头设置鼠标悬停效果*/
    66. background-color: #333;
    67. opacity: 0.8;/*透明度设置*/
    68. /*为了能够兼容其他ie浏览器的透明度设置*/
    69. filter: alpha(opaciity=80);
    70. }
    71. .next{
    72. left: auto;/*自动*/
    73. right: 0;
    74. transform: rotate(0deg);/*因为上面同意旋转了所以这边再转过来*/
    75. }
    76. /*小圆点*/
    77. .dots{
    78. position: absolute;
    79. right: 24px;
    80. bottom: 24px;
    81. line-height: 12px;/*设置行高*/
    82. }
    83. .dots span{
    84. /*是的三个span完全处于同一个水平线*/
    85. display: inline-block;
    86. width:12px;
    87. height: 12px;
    88. border-radius: 50%;
    89. background-color: rgba(7,17,27,.3);
    90. margin-left: 8px;/*上面设置的是整体而下面设置的时每一个*/
    91. box-shadow: 0 0 0 2px rgba(255,255,255,.8) inset;/*向内阴影*/
    92. cursor: pointer;/*鼠标设置成白色小手的标志*/
    93. }
    94. .dots span.active{
    95. background-color: #fff;
    96. box-shadow: 0 0 0 2px rgba(7,17,27,.8) inset;
    97. }
    98. /*主菜单*/
    99. .menu-box{
    100. position:absolute;
    101. left: 0;
    102. top: 0;
    103. width: 244px;
    104. height: 460px;
    105. background:rgba(7,17,27,.3);
    106. z-index: 1;/*设置优先级*/
    107. }
    108. /*主菜单的内同*/
    109. .menu-content{
    110. position: absolute;
    111. left: 0;
    112. top: 0;
    113. width: 244px;
    114. height:460px;
    115. z-index: 2;
    116. }
    117. .menu-item{
    118. height: 64px;
    119. line-height: 66px;
    120. cursor:pointer;
    121. padding:0 24px;
    122. }
    123. .menu-item a{
    124. display: block;
    125. color: #fff;
    126. font-size: 16px;
    127. line-height: 66px;
    128. border-bottom:1px solid rgba(255,255,255,0.2);
    129. height: 63px;
    130. padding: 0 8px;
    131. position: relative;
    132. }/*这杨设置就可以让下划线不填充整个框架*/
    133. .menu-item:last-child a{
    134. border-bottom:none;
    135. }/*去掉最后一个a标签的下划线*/
    136. .menu-item i{
    137. /*i'标签时行内元素,设置position就是隐形的设置为了块状元素*/
    138. position: absolute;
    139. right: 32px;
    140. top: 2px;
    141. color: rgba(255,255,255,.3);
    142. font-style: normal;
    143. font-weight: normal;/*此时的是4个并和在一起的 设置51行的定位来解决*/
    144. font-family: "iconfont";/*设置字体来显示箭头*/
    145. font-size: 24px;
    146. }
    147. /*子菜单*/
    148. .sub-menu{
    149. width: 730px;
    150. height: 458px;
    151. position: absolute;
    152. left: 244px;
    153. top: 0;
    154. background: #fff;
    155. z-index: 500;
    156. border: 1px solid #d9dde1;
    157. box-shadow: 0 4px 8px 0px rgba(0,0,0,0.1);
    158. }
    159. .inner-box{
    160. width: 100%;
    161. height: 100%;
    162. background: url(img/fe.png) no-repeat;
    163. display: none;/*展现之前先全部隐藏 等到循环到调用到哪个就显示哪个*/
    164. }
    165. .sub-inner-box{
    166. width: 652px;
    167. margin-left: 40px;
    168. overflow: hidden;/*超出盒子的部分进行隐藏*/
    169. }
    170. .title{/*标题部分编辑*/
    171. font-size: 16px;
    172. color: #f01414;
    173. line-height: 16px;
    174. font-weight: bold;/*加粗*/
    175. margin:28px 0 30px 0 ;/*上右下左*/
    176. }
    177. .sub-row{
    178. margin-bottom:25px;
    179. }
    180. .bold{
    181. font-weight: 700;/*100~900*/
    182. }
    183. .mr10{
    184. margin-right: 10px;
    185. }
    186. .ml10{
    187. margin-left: 10px;
    188. }
    189. .hide{
    190. display: none;
    191. }