排队导航菜单 [英] Lining up navigation menu

查看:104
本文介绍了排队导航菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

从头开始我的布局时,我遇到了一些需要很长时间才弄明白的东西,我无法在谷歌上找到我想要的东西。下面是HTML布局:

<跨度类= codeLink 的onclick =模糊(此,this.parentNode.parentNode ,getChildren(this),true);>展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号

解决方案

试试这个:


HTML:

<跨度类= codeLink 的onclick =模糊(此,this.parentNode.parentNode,的getChildren(此),true);>展开 | 选择 | Wrap | 行号


这[1]将为您提供工作基础。只需使用一个下拉菜单 - 消除飞出,下拉......

[1] http://sperling.com/examples/menuh/


感谢您的建议,我会在回家时尝试一下并坚持下去。不幸的是,我最终必须为菜单项提供背景,因此可能需要使用hsriat的代码。大卫,这个基础工作的问题是它遭受了我的同样的问题(列表直接在他们的父母下面形成)。


是否可以使用css来更改项目的属性,如果该项目不是孩子?

因为我可以有两个div(相同级别)并且有类似的东西:

展开 < span class =codeDivider> | 选择 | <跨度类= codeDivider> | <跨度类= codeLink 的onclick = LineNumbers(本);>线编号

Hi guys,
While starting my layout from scratch, I have come up against something that is taking me a long time to figure out and I can''t find exactly what I want on google. Here is the html layout:

Expand|Select|Wrap|Line Numbers

解决方案

Try this:

HTML:

Expand|Select|Wrap|Line Numbers


This [1] will give you a base to work from. Just use one drop-down-- eliminate the fly-out, drop down...
[1]http://sperling.com/examples/menuh/


Thanks for your suggestions, I will try it out when I get home and keep at it. Unfortunately I will have to give backgrounds to the menu items eventually, so might have to teak hsriat''s code. David, the problem with that base to work from is that it suffers from the same issue mine has (with the lists forming directly underneath their parents).

Is it possible to use css to change a property of an item, if that item is not a child?
As in can I have two divs (same level) and have something like:

Expand|Select|Wrap|Line Numbers


这篇关于排队导航菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆