* { margin: 0; padding: 0; list-style: none; text-decoration: none; box-sizing: border-box; } /* 主体 */ #container { /* 主体给宽不给高 */ width: 1240px; height: 100%; border: 1px solid #00f; /* 盒子居中 */ margin: 0 auto; } /* 页眉部分 */ #header { width: 100%; height: 64px; overflow: hidden; } #header .headerLeft { padding: 10px; float: left; } #header .headerMain { float: left; overflow: hidden; margin-left: 350px; padding-top: 10px; } #header .headerMain input { float: left; width: 500px; height: 45px; outline: none; border: 1px solid #eee; border-radius: 30px; padding: 10px 25px; background: #f3f7fA; } #header .headerMain div { float: left; width: 162px; height: 45px; background: rgb(90, 140, 233); color: #fff; border-radius: 30px; font-size: 25px; text-align: center; line-height: 45px; margin-left: -162px; } #header .headerRight { float: right; margin-right: 11px; overflow: hidden; } #header .headerRight .partOne { margin-top: 17px; float: left; } #header .headerRight .partTwo { float: left; margin-top: 19px; } #header .headerRight .partThree { float: left; margin-top: 11px; } #header .headerRight .login { color: rgb(90, 140, 233); font-size: 18px; float: left; background: #f5f3ee; padding: 10px; } /* 主体部分 */ #main .sell { width: calc(100% - 10px); margin-left: 10px; } #main .nav { width: 100%; height: 60px; border-radius: 4px; background: #007ad7; line-height: 60px; } #main .nav ul { overflow: hidden; } #main .nav ul li { float: left; padding-left: 28px; } #main .nav ul li a { color: #fff; font-size: 21px; } #main .nav ul li a:hover { color: #f00; } #main .list .listOne .top { width: 100%; border-bottom: 5px solid #eaf4f9; margin-top: 30px; overflow: hidden; } #main .list .listOne .top .topLeft{ float: left; } #main .list .listOne .top .topRight { float: right; } #main .list .listOne .top .topLeft ul { overflow: hidden; } #main .list .listOne .top .topLeft ul li{ float: left; } #main .list .listOne .top .topLeft ul li:nth-child(odd){ /* padding: 0 20px; */ padding-bottom: 10px; } #main .list .listOne .top .topLeft ul li a { color: #000; font-size: 25px; } #main .list .listOne .top .topLeft ul li:nth-child(even) { width: 2px; height: 23px; margin: 10px 20px 0; background: #ccc; } #main .list .listOne .top .topLeft ul li:first-child { border-bottom: 1px solid #67b2e1; } #main .list .listOne .top .topLeft ul li:first-child a{ color: #67b2e1; } #main .list .listOne .top .topRight ul{ overflow: hidden; } #main .list .listOne .top .topRight ul li{ float: left; } #main .list .listOne .top .topRight ul li a{ color: #000; margin-right: 15px; } #main .list .listOne .top .topRight ul li:last-child a { margin-right: 0; } #main .list .listOne .bottom { width: 100%; height: 300px; background: #00f; }