jquery질문 slideup시 안올라가져요ㅠㅠㅠ

jquery질문 slideup시 안올라가져요ㅠㅠㅠ

QA

jquery질문 slideup시 안올라가져요ㅠㅠㅠ

본문

(html)

<div class="header_nav_zone">
    <div class="header_main_nav">
                <ul>
                  <li>
                    A
                    <ul class="sub-menu">
                      <li class="nav_detail"><a href="#">1</a></li>
                      <li class="nav_detail"><a href="#">2</a></li>
                    </ul>
                  </li>
                  <li>B
                    <ul class="sub-menu">
                      <li class="nav_detail"><a href="/bbs/board.php?bo_table=press">3</a></li>
                      <li class="nav_detail"><a href="/bbs/board.php?bo_table=story">4</a></li>
                    </ul>
                  </li>
                </ul>
              </div>
</div>

--------------------------------------------------------------------------------------------------------

(css)

  .header_main_nav{
      font-weight: bold;
width: 100%;
height: 70px;
box-sizing: border-box;
margin-left: 35%;}

    body{
        list-style: none;
    }

    .header_main_nav ul {
    float: right;
    height: 100%;
    width: 100%;
    font-size: 20px; }

    .header_main_nav li ul .nav_detail a:hover {
        background: black;
        color: white;
    }
    body, h1, h2, h3, ul, ol, li {
        padding: 0;
        margin: 0;
    }
    .header_main_nav li ul .nav_detail a {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        color: #fff;
        text-align: center;
        text-decoration: none;
    }
    .header_main_nav li ul .nav_detail {
        position: relative;
        text-align: left;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background: black;
        line-height: 40px;
        list-style: none;
        width: 100%;
        height: 40px;
        cursor: pointer;
        z-index: 9999;
    }
    ul {
        display: block;
        list-style-type: disc;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        //padding-inline-start: 40px;
    }
    .header_main_nav>ul>li:hover {
        color: gray;
    }
    .header_main_nav li:hover {
        background-color: inherit;
    }
    .header_main_nav li {
        position: relative;
        text-align: center;
        list-style: none;
        float: left;
        line-height: 20px;
        width: 10%;
        color: #444444;
        cursor: pointer;
    }
    .header_main_nav .sub-menu {
        display: none;
        position: relative;
        z-index: 9999;
        width: 100%;
        z-index: 9999;
    }
    .header_main_nav .sub-menu{
        display: none;

    }
    .header_main_nav .sub-menu.show{
        display:block;
    }

 

---------------------------------------------------------------------------------------------------------

(script)

<script type="text/javascript">

$(document).ready(function(){
        $(".header_main_nav>ul>li").mouseover(function(){
          $(".header_main_nav .sub-menu").slideDown();
        });
        $(".header_main_nav>ul>li").mouseout(function(){
          $(".header_main_nav .sub-menu").slideup();
        });
      });

    </script>

 

slidedown은 되는데 slideup이 안되영ㅠ 어느곳이 문제일까요? 가르켜주세영

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 1,013
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT