/*头部*/ .flex { width: 100%; background: #fff; /* position: fixed;*/ top: 0; left: 0; z-index: 10; box-shadow: 0 0 10px rgba(0,0,0,.2); } header{ width: 100%; position: relative; height: 100px; z-index: 10; } header .toplogo{ float: left; width: 25%; text-align: center; } header .topmeun{ float: left; width: 60%; text-align: center; } header .topcn{ float: left; width: 10%; text-align: center; } header .topcn .search{ float: left; width: 45%; text-align: center; line-height:100px; } header .topcn .china{ float: left; width: 55%; text-align: center; line-height:100px; font-size:14px; font-weight:700; } header .topcn img{ max-width:100%; } header .logo{ display: block; } header .logo { height:100px; display: table; } header .logo #imgbox { display:table-cell; vertical-align: middle; width: 25%; } header .logo #imgbox img { display: block; margin: 0 auto; max-width: 100%; /*如果希望图片宽高都不超过父元素的宽高,并且垂直水平居中 这么设计*/ max-height: 100%; } .dropdown-menu { left:auto; right:0; min-width: 110px; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; } .dropdown-menu > li > a { text-align: center; } header nav{ width: 100%; } header nav ul{ width: 100%; height: 104px; float:left; } header nav li{ float: left; width:calc(100%/6); height: 104px; line-height: 80px; /*margin-top:50px;*/ font-size:16px; font-family: 'Glyphicons Halflings'; font-weight:700; text-align: center; } header nav ul li a { color: #020202; } header nav li:hover, header nav li.cur { color: #020202; display: inline-block; height: 80px; background:url(../img/topmean.png) no-repeat center center; } header nav li:hover a, header nav li.cur a { color: #020202; } header .share { height: 52px; line-height: 52px; font-size:16px; color: #fff; border-left: #e8e8e8 solid 1px; } header .share .lang a { font-family:"Arial"; color: #020202; } .search #search { width: 210px; height: 52px; border:1px solid #d7d7d7; color: #cccccc; -webkit-border-radius: 25px; -moz-border-radius: 25px; border-radius: 25px; } .search #search .sea { background:transparent; border:none; width: 165px; height: 52px; padding-left: 10px; line-height: 50px; color: #333333; } .search #search .btn { background: transparent; padding: 4px 12px; }