动态导航/下拉... [英] dynamic nav/drop-down...

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

问题描述




我需要有关动态导航菜单的帮助,
http://www.mayacove.com/design/nav/nav.html


看起来像我想在IE 7中使用它,但在FF和IE 6中它完全混乱了

up ..在FF中主导航部分看起来很好,但是下拉菜单是

完全搞砸了..在IE6中由于某种原因功能完全是

搞砸了,我得到了JavaScript错误,我想那是'JS组....;)


我从这里改编了这个,
http://www.javascriptkit.com/script/...leveltab.shtml

用于水平位于主导航下方的子菜单。 。


我总是遇到这个困难,希望找到一种方法,它可以在所有浏览器中运行... ...一种公式可以应用于所有情况下的
(无论子导航是垂直(下拉)还是水平..

如果可能的话......;)


非常感谢...



I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

it looks like I want it in IE 7, but in FF and IE 6 it''s totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that''s for JS group....;)

I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..

I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...

推荐答案

maya写道:
maya wrote:




我需要有关动态导航菜单的帮助,
http://www.mayacove.com/design/nav/nav.html


it看起来我想要它在IE 7中,但在FF和IE 6中它完全搞砸了

up ..在FF中主导航部分看起来很好,但下拉列表是

完全搞砸了..在IE6中由于某种原因功能完全是

搞砸了,我得到了JavaScript错误,我猜那是JS组.... )


我从这里改编了这个,
http://www.javascr iptkit.com/script/...leveltab.shtml

用于水平位于主导航下方的子菜单..


我总是遇到这个困难,希望找到一种方法,这个方法可以在所有浏览器中运行... ...一种公式可以应用于所有情况下的
(无论子导航是垂直(下拉)还是水平..

如果可能的话......;)


非常感谢...


I need help with a dynamic nav menu,
http://www.mayacove.com/design/nav/nav.html

it looks like I want it in IE 7, but in FF and IE 6 it''s totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that''s for JS group....;)

I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..

I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...



因为FF问题,这是一个填充问题......在这篇文章中,
http://www.webmasterworld.com/forum83/5499.htm


一些消息中的灰色框在FF中渲染得很好,但是我不能这样,b $ b复制这个,我可以''找到那些灰色框的CSS代码....


b / c如果我只是把这个代码,

font color ="#000000"面= QUOT; Arial字体" size =" 2">那是你唯一的方法吗?
得到一个带边框的300px宽的盒子,< b style =" color:black;

background-color:rgb(187,255,255);"> padding< / b>。难道不是很糟糕吗?

< / font>


当然它看起来与上面的url看起来一模一样......我可以''找到这个元素的
css代码..为什么FF不能将填充处理为填充??????


谢谢... .....

for the FF problem, it''s a padding problem... in this pg,
http://www.webmasterworld.com/forum83/5499.htm

the gray boxes in some of the messages render fine in FF, but I can''t
replicate this, I can''t find the css code for those gray boxes....

b/c if I just put this code,
font color="#000000" face="arial" size="2">That''s the only way you?ll
get a box 300px wide with a border, and <b style="color: black;
background-color: rgb(187, 255, 255);">padding</b>. Doesn''t that suck?
</font>

of course it looks nothing like how it looks in above url.. I can''t find
css code for this element.. WHY can''t FF treat padding as padding??????

thank you........


maya写道:
maya wrote:

hi,


我需要有关动态导航菜单的帮助,
http://www.mayacove.com/design/nav/nav.html



没有Doctype!这意味着你在怪癖模式下运行。


浏览器使用的盒子型号取决于盒子类型。


大多数情况下,你是''我想使用标准模式盒模型,你需要

a严格的doctype来触发它。


我不是很喜欢标准模式框模型,其宽度为

内容的宽度不是框的宽度。但它是一致的并且

严格摆脱浏览器之间的其他一些不一致。


我不是说这会解决你的问题,但你'将有一个级别

的比赛场地。

No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.

Mostly, you''ll want to use the standards mode box model and you''ll need
a strict doctype to trigger that.

I don''t really like the standards mode box model, where the width is
the width of the contents not that of the box. But it is consistent and
strict gets rid of some other inconsistencies between browsers.

I''m not saying that will fix your problems, but you''ll have a level
playing field.


>

看起来我想要它在IE 7中,但在FF和IE 6中它完全混乱了/>
up ..在FF中,主导航部分看起来很好,但是下拉菜单是完全搞砸了......在IE6中由于某种原因功能完全是

搞砸了,我得到了JavaScript错误,我猜那是JS集团......;)
>
it looks like I want it in IE 7, but in FF and IE 6 it''s totally messed
up.. in FF the main-nav section looks fine, but the drop-downs are
totally messed up.. in IE6 for some reason the functionality is totally
messed up, I get JavaScript errors, I guess that''s for JS group....;)



祝你好运。

Good luck with that.


>

我从这里改编了这个,
http://www.javascriptkit.com/script/...leveltab.shtml

这是用于水平位于主导航下方的子菜单..
>
I adapted this from here,
http://www.javascriptkit.com/script/...leveltab.shtml
which is for sub-menus that go horizontally right underneath main-nav..



我会重写子菜单,这样你就不用了列表

或一系列div。


Jeff

I''d rewrite the submenus, so that instead of br''s you have either a list
or a series of divs.

Jeff


我总是遇到困难有了这个,想找到一种方法,

适用于所有浏览器...一种公式可以应用于所有情况下的
(无论子导航是垂直(下拉)还是水平..

如果可能的话......;)


非常感谢...

I always have difficulties with this, would like to find a method that
works across all browsers... a kind of "formula" that can be applied to
all situations (whether sub-nav is vertical (drop-downs) or horizontal..
if possible...;)

thank you very much...


Jeff schrieb:
Jeff schrieb:

maya写道:
maya wrote:

> hi,

我需要有关动态导航菜单的帮助, http://www.mayacove.com/design/nav/nav .html



没有Doctype!这意味着您正在以怪癖模式运行。


浏览器使用的箱型号取决于箱型。


No Doctype! That means you are operating in quirks mode.

What box model the browser uses is dependent on the boxtype.



s / boxtype / doctype /

s/boxtype/doctype/


这篇关于动态导航/下拉...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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