[問題] css第二子選單的li如何設定

看板Web_Design作者 (John)時間16年前 (2010/01/17 10:14), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
主選單 A B C 的子選單分別為 A1 B1 B2 B3 無 簡言之如下: A-a1 B-b1+b2+b3 C-無子選單 且html語法為 <div id="menuh"> <ul><li><a href="#" class="top_parent">A選單</a> <ul><li><a href="#">A1</a></li></ul></li> </ul> 請問如何在html中增加 a11 呢 (子選單的子選單) 照片http://www.badongo.com/cn/pic/8438108 我看該文件的css中有好像有設定到"子子選單" 下面是該css的原始檔案 有點長 但請各位指點迷惑 ------------- /* Begin CSS Popout Menu */ #menuh-container { position: relative; margin-top: 0; width:750px; } #menuh { font-size: 80%; font-family: helvetica, "Trebuchet MS",arial, sans-serif; width:100%; float:left; margin:0; color: #333; background: #6E6A5A; border-bottom : 0px solid #520934; } #menuh a { text-align: left; display:block; height:16px; border: 0px solid #eee; white-space:nowrap; margin:0; padding: 0.3em 0.2em 0.3em 0.4em; } #menuh a, #menuh a:visited /* menu at rest */ { color: #fff; background: #6E6A5A; text-decoration:none; } #menuh a:hover /* menu at mouse-over */ { color: #fff; background-color: #404040; } #menuh a.top_parent, #menuh a.top_parent:hover /* attaches down-arrow to all top-parents */ {text-transform: uppercase; background-image: url(images/navdown_white.gif); background-position: right center; background-repeat: no-repeat; } #menuh a.parent, #menuh a.parent:hover /* attaches side-arrow to all parents */ { background-image: url(images/nav_white.gif); background-position: right center; background-repeat: no-repeat; } #menuh ul { list-style:none; margin:0; padding:0; float:left; width:100px; /* width of all menu boxes */ } #menuh li { position:relative; } #menuh ul ul { position:absolute; z-index:500; top:auto; display:none; padding: 1em; margin:-1em 0 0 -1em; } #menuh ul ul ul { top:0; left:100%; } div#menuh li:hover { cursor:pointer; z-index:100; } div#menuh li:hover ul ul, div#menuh li li:hover ul ul, div#menuh li li li:hover ul ul, div#menuh li li li li:hover ul ul {display:none;} div#menuh li:hover ul, div#menuh li li:hover ul, div#menuh li li li:hover ul, div#menuh li li li li:hover ul {display:block;} /* End CSS Popout Menu */ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.29.1.105 ※ 編輯: pata203 來自: 122.29.1.105 (01/17 10:17)

01/17 10:19, , 1F
子子選單是否修要改css最後面的{display:none;}
01/17 10:19, 1F
文章代碼(AID): #1BKdAEnh (Web_Design)