게시글이 중복일 수 있으나 중복이 아닌것을확인하고 다시올립니다.
<div id="myslidemenu" class="jqueryslidemenu"><ul><li><table width="265" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><a href="#"><img src="../images/top/menu/menu_01.jpg"/></a></td> </tr> </tbody></table> <ul> <li><!--테이블삽입시작--><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/cate_all.jpg"></td> </tr> </tbody></table><!--테이블삽입 끝--></li></ul><li><table width="149" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><!--에코--><a href="list.php?ca_id=10#"><img src="../images/top/menu/menu_02.jpg" width="149" height="49" alt=""/></a></td> </tr> </tbody> </table><!--에코끝--><ul> <li><!--테이블삽입시작--><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/eco.jpg"></td> </tr> </tbody></table><!--테이블삽입 끝--></li></ul><li><table width="142" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><!--쉐프--><a href="list.php?ca_id=70"><img src="../images/top/menu/menu_03.jpg" width="142" height="49" alt=""/></a></td> </tr> </tbody></table><ul> <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/chef.jpg"></td> </tr> </tbody></table></div><!--테이블삽입 끝--></li></ul><li><table width="110" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><!-- 이벤트--><a href="/bbs/board.php?bo_table=event"><img src="../images/top/menu/menu_04.jpg" width="110" height="49" alt=""/></a></td> </tr> </tbody></table><ul> <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/chef.jpg"></td> </tr> </tbody></table></div><!--테이블삽입 끝--></li></ul><li><table width="125" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><!--체험문의--><a href="#"><img src="../images/top/menu/menu_05.jpg" width="125" height="49" alt=""/></a></td> </tr> </tbody></table><!--테이블삽입시작--><ul> <li><div id="sub"><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/chef.jpg"></td> </tr> </tbody></table></div></li></ul><!--테이블삽입 끝--> </li><li><table width="199" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><table width="199" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td><!-- 고객지원--><a href="#"><img src="../images/top/menu/menu_06.jpg" width="199" height="49" alt=""/></a></td> </tr> </tbody></table></td> </tr> </tbody></table><ul> <li><!--테이블삽입시작--><div id="sub"><table width="990" border="0" cellspacing="0" cellpadding="0" bgcolor="#fff"> <tbody> <tr> <td><img src="../images/top/cate_all/chef.jpg"></td> </tr> </tbody></table></div><!--테이블삽입 끝--></li></ul> </li></li></ul><br style="clear: left" /></div>
css
.jqueryslidemenu{background: #fff;/*기본메뉴 배경색*/width: 100%;/*기본메뉴 가로사이즈*/}.jqueryslidemenu ul{margin: 0;padding: 0;list-style-type: none;z-index:5001;/*2, 3차메뉴 순서*/}/*Top level list items*/.jqueryslidemenu ul li{position: relative;float: left;}/*Top level menu link items style*/.jqueryslidemenu ul li a{display: block;background: #; /*background of tabs (default state)*/color: #ccc;border-right: px solid #778;color: #FF3135;text-decoration: none;}* html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/display: inline-block;}.jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{color: #000;/*기본메뉴 텍스트색상*/font-size:12px}.jqueryslidemenu ul li a:hover{background: #; /*오버시 백그라운드색상*/color: #ccc;/*메뉴롤오버시 텍스트색상*/} /*1st sub level menu*/.jqueryslidemenu ul li ul{position: absolute;left: -800px;display: block;visibility: hidden;}/*Sub level menu list items (undo style from Top level List Items)*/.jqueryslidemenu ul li ul li{display: list-item;float: left;}/*All subsequent sub menu levels vertical offset after 1st level sub menu */.jqueryslidemenu ul li ul li ul{ position: absolute; left: -500px; top: 0; width: 819px;}/* Sub level menu links style */.jqueryslidemenu ul li ul li a{font: bold 12px Dotum, "돋움";/*링크가 있는 텍스트*/position: absolute;left:0px;width:160px; /*2차메뉴 가로사이즈*/height:20px;background:#FFFFFF;}.div 2side{ position:absolute;left:-300px; float:left.jqueryslidemenuz ul li ul li a:hover{ /*메뉴텍스트 오버스타일*/background: #ccc;color: 333;}./* ######### CSS classes applied to down and right arrow images ######### *//*.downarrowclass{position: absolute;top: 12px;right: 7px;}.rightarrowclass{position: absolute;top: 6px;right: 5px;}*/
제가 필요한기능은 마우스 오버시에 서브레이어가 가로 꽉차게 나오게 하고 싶은데 해당 메뉴 바로아래로만 나와서 도움을얻고자 글을 또 써봅니다.
해당메뉴 바로아래가 아닌 가로 꽉찬 레이어가 나오게 하려면 어찌해야 할까요?
답변 1개 / 댓글 1개
저의 개인적인 견해로 볼 때,
위의 소스로는 RedDJ 님이 원하시는 결과를 얻기가 좀 어려울 듯 합니다.
일단 아래와 같이 수정하면, 서브메뉴가 가로로 꽉차게 할 수는 있지만...
.jqueryslidemenu{background: #fff;/*기본메뉴 배경색*/width: 100%;/*기본메뉴 가로사이즈*/position: relative; /* 이부분 추가 */} ~ 중략 ~ /* 아래부분 추가 - <div id="sub">가 서브메뉴 레이어라고 전제할 때 */#sub{position: absolute;left: 0; /* 좌로부터의 위치-상황에 맞게 조정 */top: 40px; /* 위로부터의 위치-상황에 맞게 조정 */width: 600px; /* 서브메뉴 넓이-상황에 맞게 조정 */}
CSS 를 위와같이 수정하면 마우스 오버시에 서브메뉴가 넓이를 설정한 크기로 나올 것으로 예상되지만,
이와 관련된 자바스크립트 코드를 알 수 없으므로 어떻게 될지는 알 수 없습니다.
만약 서브메뉴 전체가 나오는 것을 원하신다면 아래의 링크를 참고해 보시기 바랍니다.
http://sir.co.kr/g5_skin/8455?sfl=wr_subject%7C%7Cwr_content&stx=%EB%A9%94%EB%89%B4
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.