Pure css下拉菜单没有js(如果js被禁用)在IE 6? [英] Pure css drop down menu without js ( if js is disabled) in IE 6?

查看:129
本文介绍了Pure css下拉菜单没有js(如果js被禁用)在IE 6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现许多css / js菜单脚本在各种网站上,他们工作很好是在FF,IE7和safari,歌剧如果JS被禁用,但不是在IE 6和IE 6小js文件需要添加,因为IE不支持悬停但我的问题是我们可以为IE6的precss下拉菜单,因为
IE 6支持:hover on然后我们可以下拉菜单没有javascript为IE6和所有其他浏览器。 ?

I found many css/js menu scripts on various sites they work well is in FF, IE7 and safari, opera if JS is disabled but not in IE 6 and for IE 6 small js file need to add because IE doesnt support hover but my question is can we make pre css dropdown menu for IE6 because IE 6 support :hover on then can we make dropw down menu without javascript for IE6 and all other browsers. ?

推荐答案

唯一合法的非JS解决方法虽然讨厌使用条件和一个 c $ c>元素:

The only legit non-JS workaround albeit nasty is using conditionals and a table element:

http://www.cssplay.co.uk/menus/final_drop.html

编辑:

实际上,Stu似乎有一个新的方法,它依赖于一个巨大的边际偏移,大量的显式堆叠顺序声明,我认为他使用某种浮动下降。

Actually there appears to be a new method from Stu which relies on a huge margin offset, plenty of explicit stacking order declarations, I think he's using some kind of float drop.

似乎是由Paul O'B / Timo @ http://www.sitepoint.com/forums/showthread.php?t=635116&page=5

Seems to have been pioneered by either Paul O'B/Timo @ http://www.sitepoint.com/forums/showthread.php?t=635116&page=5

http://www.cssplay.co.uk/menus/new-dropdown.html

这篇关于Pure css下拉菜单没有js(如果js被禁用)在IE 6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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