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이 안되영ㅠ 어느곳이 문제일까요? 가르켜주세영