/* css reset 重置样式 */ body{ margin: 0; } ul{ padding: 0; margin: 0; } li{ list-style: none; } a{ /* text-decoration:none 清除下划线 underline下划线 line-through删除线 */ text-decoration: none; } p{ margin:0; } /* 工具类 */ /* 页面内容宽度 */ .main-width{ width: 1226px; margin: 0 auto; } .clearfix::after{ content: ""; display: block; /* 清除所有方向的浮动 */ clear: both; } /* 顶部导航栏start */ .top-nav{ background-color: #333; color: #b0b0b0; height: 40px; font-size: 12px; line-height: 40px; } .top-nav a{ color: #b0b0b0; } .top-nav a:hover{ color: #fff; } .top-nav .left-nav{ float: left; } .top-nav .right-nav{ float: right; } .top-nav .line{ margin: 0 4px; color: #424242; } .top-nav .cart{ background-color: #424242; height: 40px; display: inline-block; padding:0 10px; } .top-nav .download-app{ position: relative; } .top-nav .download-app .appcode{ position: absolute; left:50%; margin-left: -60px; width: 120px; background-color: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.5); text-align: center; line-height: normal; padding: 10px 0; display: none; } .top-nav .appcode img{ width: 90px; height: 90px; } .top-nav .download-app .appcode-text{ font-size: 14px; color: #333; } .top-nav .appcode .arr{ width: 0; height: 0; border-bottom: 8px solid #fff; border-left: 8px solid transparent; border-right: 8px solid transparent; position: absolute; left: 50%; margin-left: -8px; top:-8px; } .top-nav .download-app{ display: inline-block; height: 40px; } .top-nav .download-app:hover .appcode{ display: block; } /* 顶部导航栏end */