* { margin: 0; padding: 0; list-style: none; text-decoration: none; box-sizing: border-box; } .header { width: 100%; height: 75px; } .header #contain { width: 1260px; height: 100%; margin: 0 auto; overflow: hidden; } .header #contain #logo{ width: 149px; height: 45px; float: left; background: url('./images/soso.png'); background-position:217px 123px; margin-top: 15px; } .header #contain #nav{ width: 352px; height: 100%; float: left; margin-left: 68px; line-height: 75px; position: relative; } .header #contain #nav ul { overflow: hidden; } .header #contain #nav ul li { float: left; margin-left: 28px; } .header #contain #nav ul li a { color: #000; font-size: 16px; } .header #contain #nav ul li:first-child a { color: #31ccff; } .header #contain #nav ul li:first-child { margin-left: 0; } .header #contain #nav ul li:hover a { color: #31ccff; } .header #contain #nav #tips { width: 37px; height: 14px; background-color: #f5f7f9; border-radius: 8px; border: solid 1px #dddddd; text-align: center; line-height: 13px; font-size: 12px; color: #999999; position: absolute; top: 15px; right: 14px; } .header #contain #btn{ width: 112px; height: 38px; float: right; color: #fff; text-align: center; line-height: 38px; font-size: 16px; background: #1ebcf0; border-radius: 4px; border:1px solid #1ebcf0; margin-top: 17px; margin-right: 8px; } .header #contain #btn:hover { background: #31ccff; } .main #banner { width: 100%; height: 482px; background: url('./images/banner.jpg') no-repeat; background-position: center; } .main #banner #inp { width: 692px; height: 58px; background: rgba(0, 0, 0, .1); position: absolute; top: 215px; left: 287px; overflow: hidden; border-radius: 3px; padding: 4px 3px; } .main #banner #inp input { float: left; width: 588px; height: 50px; background: rgba(255,255,255,.88); border: 1px solid #ccc; outline: none; border-top-left-radius: 3px; border-bottom-left-radius: 3px; font-size: 16px; padding: 10px 20px; } .main #banner #inp img { float: left; width: 97px; height: 50px; } .main #banner #contain { width: 1260px; height: 100%; margin: 0 auto; position: relative; } .main #mode1 { width: 1260px; height: 388px; overflow: hidden; margin: 60px auto 0; } .main #mode1 #part{ width: 290px; height: 288px; float: left; margin-left: 33px; margin-top: 50px; } .main #mode1 #part:first-child { margin-left: 0; } .main #mode1 #part #picture { width: 290px; height: 200px; position: relative; } .main #mode1 #part #picture img { width: 290px; height: 200px; } .main #mode1 #part p { width: 100%; height: 48px; margin-top: 41px; overflow: hidden; } .main #mode1 #part p span { width: 140px; height: 48px; font-size: 14px; text-align: center; line-height: 48px; color: #666; float: left; border-radius: 2px; border: 1px solid #dfdfdf; } .main #mode1 #part p span:hover { color:#1ebcf0; } .main #mode1 #part p span:last-child { float: right; } .main #mode1 #part #picture #title { width: 100%; height: 50px; color: #fff; text-align: center; position: absolute; top: 150px; left: 0; line-height: 50px; /* z-index: 2; */ background: rgba(0,0,0,.5); display: none; } .main #mode1 #part #picture:hover #title { display: block; } .main #mode2 { width: 100%; height: 608px; background: #f6f6f6; } .main #mode3 { width: 100%; height: 286px; }