现在的下拉菜单是兼容性越来越好了,不用js的最好了,但如果能用最少的代码实现出效果,也是不错的
第一个,用到的js,不过很短,也很明了
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]
这一个也不错
- DEMOS<!--
- zero dollars advertising page
- wrapping text around images
- styled form
- active focus
- hover/click with no borders<!--
- styled form
- removing active/focus borders
- hover/click
- shadow boxing
- image map for detailed information
- fun with background images
- fade scrolling
- em image sizes compared
- BOXES <!--
- a coded list of spies
- vertical menu
- enlarging unordered list
- link images
- non-rectangular
- jigsaw links
- circular links
- MOZILLA<!--
- drop down menu
- cascading menu
- content:
- mozzie box
- I can build a rainbow with transparent borders
- a snooker cue using border art
- target practise
- two tone headings
- shadow text
- EXPLORER<!--
- the first example for Internet Explorer
- weft fonts
- vertically aligning text
- OPACITY<!--
- a colour wheel using opaque colours
- a menu using opacity
- partial opacity
- partial opacity II
- HOVER/CLICK<!--
- styled form
- removing active/focus borders
- hover/click
[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]
http://www.jluvip.com/works/css/dropmenu/dropmenu.html