/* 头部样式开始 */ .header { width: 100%; height: 120px; overflow: hidden; position: relative; } .header img { height: 120px; position: absolute; left: 50%; transform: translateX(-50%); } /* 头部样式结束 */ /* 黑色导航样式开始 */ .black-nav { width: 100%; height: 40px; line-height: 40px; background-color: #333; font-size: 12px; } .wrap { width: 1226px; margin: 0 auto; } .black-nav-left { float: left; } .black-nav-right { float: right } .black-nav li { float: left; position: relative; } .black-nav a { color: #b0b0b0; } .black-nav span { color: #424242; margin: 0 3.6px } .download { width: 124px; height: 0; background: #fff; box-shadow: 0 1px 5px #aaa; position: absolute; top: 40px; left: 50%; margin-left: -62px; overflow: hidden; transition: all 0.3s; } .download img { width: 90px; margin: 18px auto 0; } .black-nav-left li:hover>.download { height: 148px; } .download p { color: #333; font-size: 14px; line-height: 14px; } .stri { width: 0; height: 0; border-bottom: 8px solid #fff; border-left: 8px solid transparent; border-right: 8px solid transparent; position: absolute; bottom: 0; left: 50%; margin-left: -8px; display: none; } .black-nav-left li:hover>.stri { display: block; } .cart { width: 120px; height: 40px; background-color: #424242; margin-left: 25px; position: relative; } .cart:hover { background: white; } .cart:hover>a { color: #ff6700; } .cart i { font-style: normal; margin-right: 8px; } .cart-list { width: 316px; height: 0; background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); position: absolute; right: 0; top: 40px; color: #424242; overflow: hidden; transition: all 0.3s; line-height: 100px; } .cart:hover>.cart-list { height: 100px; } /* 黑色导航样式结束 */ /* 白色导航样式开始 */ .white-nav { height: 100px; width: 100%; background-color: #fff; position: relative; } .logo { width: 55px; height: 55px; background-color: #ff6700; float: left; margin-top: 22.5px; overflow: hidden; position: relative; } .logo img { width: 100%; height: 100%; position: absolute; top: 0; transition: all 0.2s; } .mi-home { left: -55px; } .mi-logo { left: 0; } .logo:hover>.mi-home { left: 0; } .logo:hover>.mi-logo { left: 55px; } .nav-bar{ width: 875px; height: 100px; line-height: 100px; float:left; } .search{ width: 296px; height: 100px; float:right; } .nav-bar li{ float:left; } .nav-bar>ul>li>a{ color: #333; padding:0 10px; } .nav-bar>ul>li>a:hover{ color:#ff6700; } .nav-bar>ul>li:first-child img{ margin-top:22.5px; } .search input{ width:224px; height:50px; border: 1px solid #e0e0e0; margin-top: 25px; outline: none; padding: 0 10px; box-sizing: border-box; border-right: 0; } .search button{ width: 52px; height: 50px; background-color: #fff; border: 1px solid #e0e0e0; float:right; margin-top: 25px; } .search button:hover{ background-color: #ff6700; color:white; } /* 白色导航样式结束 */