English 中文(简体)
未加列清单内的未定清单——特定细列项目
原标题:unordered list within unordered list - select particular line item

I m building a navigation with drop down menus. I d like the line item that contains the unordered list, subnav, to have white anchor text when hovered. I have done this but my selector has resulted in a bug with one of the drop down line items. Please see: http://jsfiddle.net/W3Dzd/ If you hover over "sui generis" and run the cursor down the menu it works fine except for "mantels" - the anchor text does not change color when hovered. I guess that what has happened is that the selector for the 3rd line item in the main nav has also selected the 3rd line item in the subnav. Can someone suggest a better selector or way around this?

最佳回答

如果您有可能修改产生贵方的法典(如果是随手编码的话,可以人工改动),那么,你最终将采用一种更强有力的制度,将子门别类应用到母体<代码>li,而不是将儿童代码<>ul<>/code>。 你先前的守则是,通过复杂的挑选器将特定清单项目作为目标,如果你重新安排菜单或增加/删除其中的物项,这些清单将中断。 新的法典将处理这些案件,没有问题。

你们可以看到在经过更新的jsFiddle如何采取行动的样本:。 http://jsfiddle.net/W3Dzd/4/

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签