layer的变动

    1. body{
    2. margin: 0;
    3. background-color: #f4f4f4;
    4. }
    5. .clearfix::after{
    6. content: "";
    7. display: table;
    8. clear: both;
    9. }
    10. /* 因为不止最上面的大div要用width100%,min-width,
    11. 每一层都要用到,所以单独抽出个类,就不用每次都写了,而是写上类名,
    12. 用类名代替这些css代码,把css样式封装成一个一个的类,在css上少写,在html上多写类名 */
    13. .layer{
    14. /* width: 100%;
    15. min-width: 1190px; */
    16. width: 1190px;
    17. margin: 0 auto;
    18. }
    19. .t-nav-cover{
    20. /* width: 100%;
    21. min-width: 1190px; */
    22. width: 100%;
    23. min-width: 1190px;
    24. height: 35px;
    25. background-color: #f5f5f5;
    26. border-bottom: 1px solid #eee;
    27. }
    28. .t-nav-cover .site-nav{
    29. /* width: 1190px; */
    30. height: 35px;
    31. /* margin: 0 auto; */
    32. background-color: #000;
    33. }
    34. .main-nav-cover{
    35. width: 100%;
    36. min-width: 1190px;
    37. }
    38. .t-main-cover{
    39. width: 100%;
    40. min-width: 1190px;
    41. /* width: 100%; */
    42. /* height: 121px; */
    43. background-color: #fff;
    44. }
    45. .t-main-cover .main-belt{
    46. /* width: 1190px; */
    47. height: 121px;
    48. /* margin: 0 auto; */
    49. background-color: orange;
    50. }
    51. .main-nav-cover .main-nav{
    52. /* width: 1190px; */
    53. height: 30px;
    54. /* margin: 0 auto; */
    55. background-color: #ff5000;
    56. }
    57. .main-show-area{
    58. /* width: 1190px; */
    59. /* height: 632px; */
    60. /* margin: 0 auto; */
    61. /*可以删掉 */
    62. /* background-color: #666; */
    63. }
    64. /* .main-show-area .main-show-box{
    65. float: left;
    66. height: 100%;
    67. }
    68. .main-show-area .main-show-box.main-area{
    69. width: 900px;
    70. background-color: pink;
    71. }
    72. .main-show-area .main-show-box.funcs-area{
    73. width: 290px;
    74. background-color: purple;
    75. } */
    76. /* .main-show-area .main-show-box{
    77. float: left;
    78. height: 100%;
    79. } */
    80. .main-show-area .main-area{
    81. float: left;
    82. width: 900px;
    83. /* height: 100%; */
    84. height: 632px;
    85. /* background-color: pink; */
    86. }
    87. .main-show-area .main-area .main-show{
    88. height: 522px;
    89. /* background-color: pink; */
    90. margin-bottom: 10px;
    91. }
    92. .main-show-area .main-area .main-show .nav-menu-list{
    93. float: left;
    94. width: 190px;
    95. height: 100%;
    96. background-color: blue;
    97. }
    98. .main-show-area .main-area .head-line{
    99. width: 890px;
    100. height: 100px;
    101. margin-right: 10px;
    102. background-color: green;
    103. }
    104. .main-show-area .main-area .main-show .sliders-wrap{
    105. float: left;
    106. width: 520px;
    107. height: 512px;
    108. margin: 10px 0 0 10px;
    109. /* background-color: pink; */
    110. }
    111. .main-show-area .main-area .main-show .sliders-wrap .main-slider{
    112. height: 280px;
    113. background-color: pink;
    114. }
    115. .main-show-area .main-area .main-show .sliders-wrap .goods-silder{
    116. height: 230px;
    117. background-color: #ff5000;
    118. /* overflow: hidden; */
    119. }
    120. .main-show-area .main-area .main-show .sliders-wrap .goods-silder .goods-slider-hd{
    121. height: 18px;
    122. /* margin-top: 10px; */
    123. padding-top: 10PX;
    124. /* background-color: #000; */
    125. }
    126. /* .goods-slider{
    127. height: 230px;
    128. background-color: #000;
    129. } */
    130. .main-show-area .main-area .main-show .hot-sale-imgs{
    131. float:left;
    132. width: 160px;
    133. height: 512px;
    134. margin: 10px 10px 0 ;
    135. /* background-color: red; */
    136. }
    137. .main-show-area .main-area .main-show .hot-sale-imgs .t-img{
    138. height: 280px;
    139. background-color: green;
    140. }
    141. .main-show-area .main-area .main-show .hot-sale-imgs .b-img{
    142. height: 230px;
    143. background-color: yellowgreen;
    144. }
    145. .main-show-area .funcs-area{
    146. float: left;
    147. width: 290px;
    148. height: 632px;
    149. /* background-color: purple; */
    150. margin-top: 10px;
    151. }
    152. .main-show-area .funcs-area .member{
    153. height: 145px;
    154. background-color: blue;
    155. }
    156. .main-show-area .funcs-area .member-tip{
    157. height: 29px;
    158. background-color: green;
    159. }
    160. .main-show-area .funcs-area .member-notice{
    161. height: 108px;
    162. background-color: #ff5000;
    163. }
    164. .main-show-area .funcs-area .member-funcs{
    165. height: 232px;
    166. background-color: #000;
    167. }
    168. .main-show-area .funcs-area .member-apps{
    169. height: 110px;
    170. background-color: pink;
    171. }
    172. .life-belt{
    173. /* width: 1190px; */
    174. height: 166px;
    175. /* margin: 0 auto; */
    176. background-color: #f40;
    177. }
    1. <!DOCTYPE html>
    2. <html lang="en">
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
    6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
    7. <title>淘宝</title>
    8. <link rel="stylesheet" href="./css/index.css">
    9. </head>
    10. <body>
    11. <!-- <div class="t-nav-cover">
    12. <div class="site-nav"></div>
    13. </div>
    14. <div class="t-main-cover">
    15. <div class="main-belt"></div>
    16. </div> -->
    17. <!-- <div class="layer t-nav-cover">
    18. <div class="site-nav"></div>
    19. </div>
    20. <div class="layer t-main-cover">
    21. <div class="main-belt"></div>
    22. </div>
    23. <div class="layer main-nav-cover">
    24. <div class="main-nav"></div>
    25. </div>
    26. <div class="main-show-area clearfix">
    27. <div class="main-show-box main-area">
    28. </div>
    29. <div class="main-show-box funcs-area">
    30. </div>
    31. </div> -->
    32. <!-- 最顶上的区域 有登录按钮 -->
    33. <div class="t-nav-cover">
    34. <div class="layer site-nav"></div>
    35. </div>
    36. <!-- 带搜索框的区域 -->
    37. <div class="t-main-cover">
    38. <div class="layer main-belt"></div>
    39. </div>
    40. <!-- 带主题市场的区域 -->
    41. <div class="main-nav-cover">
    42. <div class="layer main-nav"></div>
    43. </div>
    44. <!-- 主展示区域 -->
    45. <div class="layer main-show-area clearfix">
    46. <div class="main-area">
    47. <div class="main-show clearfix">
    48. <!-- 竖栏展示框 -->
    49. <div class="nav-menu-list"></div>
    50. <!-- 中间包含轮播图的区域 -->
    51. <div class="sliders-wrap">
    52. <!-- 轮播图 -->
    53. <div class="main-slider"></div>
    54. <!-- <div class="goods-silder"></div> -->
    55. <div class="goods-silder">
    56. <div class="goods-slider-hd"></div>
    57. </div>
    58. </div>
    59. <div class="hot-sale-imgs">
    60. <div class="t-img"></div>
    61. <div class="b-img"></div>
    62. </div>
    63. </div>
    64. <div class="head-line"></div>
    65. </div>
    66. <div class="funcs-area">
    67. <div class="member"></div>
    68. <div class="member-tip"></div>
    69. <div class="member-notice"></div>
    70. <div class="member-funcs"></div>
    71. <div class="member-apps"></div>
    72. </div>
    73. </div>
    74. <div class="layer life-belt">
    75. </div>
    76. </body>
    77. </html>