header.css 2.7 KB
/* 头部 */

#header {
    width: 100%;
    height: 80px;
    line-height: 80px;
    background-color: white;
}

#header section {
    float: left;
}


/* logo */

#header .home_logo {
    width: 110px;
    height: 70px;
    margin: 0 175px 0 210px;
}

#header .home_logo img {
    width: 100%;
    height: 100%
}


/* 导航栏 */

#header .home_nav ul li {
    position: relative;
    float: left;
    font-size: 17px;
    color: rgba(77, 77, 77, 1);
    width: 70px;
    height: 76px;
    margin: 0 30px;
    text-align: center;
    border-top: 4px solid rgba(255, 255, 255, 1);
}

#header .home_nav ul li:hover .home_nav_down {
    display: block;
}

.home_nav_down {
    display: none;
    position: absolute;
    width: 146px;
    top: 70px;
    z-index: 1;
}

.home_nav_down2 {

    width: 146px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 4px 16px 0px rgba(35, 35, 35, 0.2);
    border-radius: 2px;
    position: relative;
}

.home_nav_down2 img {
    top: -10px;
    left: 12%;
    position: absolute;
    width: 7px;
    height: 13px;
    transform: rotate(90deg);
}

.home_nav_down2 dl {
    margin-top: 10px;
}

.home_nav_down2 dl dd:hover {
    background: rgba(58, 255, 165, 1);
}

.home_nav_down2 dl dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: rgba(51, 51, 51, 1);
    cursor: pointer;
    text-align: left;
    height: 40px;
    padding-left: 17px;
    box-sizing: border-box;
    line-height: 40px;
    display: block;
}

#header .home_nav ul li a {
    padding-top: 28px;
}

.home_nav_act {
    color: rgba(9, 255, 142, 1);
    border-top: 4px solid rgba(9, 255, 142, 1);
}

.home_nav .home_nav_act_A:hover {
    color: rgba(9, 255, 142, 1);
    border-top: 4px solid rgba(9, 255, 142, 1);
}


/* 搜索框 */

#header .home_search {
    position: relative;
    width: 308px;
}


/* 图标 */

#header .home_search .search_icon {
    position: absolute;
    left: 85px;
    top: 32px;
    background-image: url("../starImg/aicon_23.png");
    background-repeat: no-repeat;
    background-position: 0px 0px;
    width: 18px;
    height: 18px;
    z-index: 3
}


/* 输入框 */

#header .home_search input {
    margin: 0 16px 0 76px;
    width: 160px;
    height: 33px;
    background: rgba(242, 242, 242, 1);
    border-radius: 17px;
    outline: none;
    border: none;
    padding-left: 40px;
}


/* 登录注册按钮 */

#header .home_login span p {
    float: left;
    margin-left: 16px
}


/* 注册按钮 */

#header .home_login span p:first-child {
    width: 78px;
    height: 40px;
    background: rgba(18, 237, 136, 1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 1);
    line-height: 40px;
    text-align: center;
    margin-top: 20px
}