首页 >

js实现带圆角的多级下拉菜单效果【javascript】

web前端|js教程js实现带圆角的多级下拉菜单效果【javascript】
js,圆角,多级下拉菜单
web前端-js教程
本文实例讲述了js实现带圆角的多级下拉菜单效果。分享给大家供大家参考。具体如下:
跑胡子h5源码,如何正确安装ubuntu,tomcat启动时秒闪,java web爬虫源码,php50以内所有素数,附子seo网lzw
这是一款酷黑的圆角多级下滑菜单,可支持三级,鼠标放上后可见到滑出的菜单,调用了一个JS封装库,代码有些复杂,有兴趣的可研究。
个人软件发布网站源码,vscode 选中相同的,ubuntu密码指令,提升tomcat io,sqlite替换字符串,爬虫三合一垫,关闭 php 服务,东莞seo优化效果,织梦播放器网站,织梦网页模板怎么进入后台,网上求职招聘系统模板lzw
运行效果截图如下:
社区拼购源码,ubuntu解压命令rar,爬虫 豆瓣电影250,php8.1与php8.0,鱼头seo平台lzw
在线演示地址如下:

http://demo.jb51.net/js/2015/js-down-show-menu-style-codes/

具体代码如下:

  下拉菜单 .imcm ul,.imcm li,.imcm div,.imcm span,.imcm a{text-align:left;vertical-align:top;padding:0px;margin:0;list-style:none outside none;border-style:none;background-image:none;clear:none;float:none;display:block;position:static;overflow:visible;line-height:normal;}.imcm li a img{display:inline;border-width:0px;}.imcm span{display:inline;}.imcm .imclear,.imclear{clear:both;height:0px;visibility:hidden;line-height:0px;font-size:1px;}.imcm .imsc{position:relative;}.imcm .imsubc{position:absolute;visibility:hidden;}.imcm li{list-style:none;font-size:1px;float:left;}.imcm ul ul li{width:100%;float:none !important;}.imcm a{display:block;position:relative;}.imcm ul .imsc,.imcm ul .imsubc {z-index:10;}.imcm ul ul .imsc,.imcm ul ul .imsubc{z-index:20;}.imcm ul ul ul .imsc,.imcm ul ul ul .imsubc{z-index:30;}.imde ul li:hover .imsubc{visibility:visible;}.imde ul ul li:hover .imsubc{visibility:visible;}.imde ul ul ul li:hover .imsubc{visibility:visible;}.imde li:hover ul .imsubc{visibility:hidden;}.imde li:hover ul ul .imsubc{visibility:hidden;}.imde li:hover ul ul ul .imsubc{visibility:hidden;}.imcm .imea{display:block;position:relative;left:0px;font-size:1px;line-height:1px;height:0px;width:1px;float:right;}.imcm .imea span{display:block;position:relative;font-size:1px;line-height:0px;}.dvs,.dvm{border-width:0px}/*\*//*/.imcm .imea{visibility:hidden;}/**/ ulm_round_corner_size_main = 2; ulm_round_corner_size_sub = 2;
.imgl .imrc{font-size:1px;line-height:0px;height:1px;border-width:0px;border-style:solid;border-right-width:1px;border-left-width:1px;}.imgl .imbrc{border-width:0px;border-bottom-width:1px;height:0px;}
;function im_round_corners(tb,ms,isget,inner){var size=window["ulm_round_corner_size_"+ms];var pos=0;var wv="";if(!inner)wv+='
';if(tb=="top"){wv+=im_rcs(size,1," imtopspace");for(var i=size-1;i>=0;i--)wv+=im_rcs(i);}else {for(var i=0;i<size;i++)wv+=im_rcs(i);wv+=im_rcs(size,1,"");}if(!inner)wv+='
';if(isget)return wv;else document.write(wv);};function im_rcs(pos,is_cap,topclass){if(is_cap)return '
';else return '
';} /* --[[ Main Expand Icons ]]-- */ #imenus0 .imeam span,#imenus0 .imeamj span {width:9px; height:9px; left:-10px; top:5px; background-repeat:no-repeat;background-position:top left;} #imenus0 li:hover .imeam span,#imenus0 li a.iactive .imeamj span {background-repeat:no-repeat;background-position:top left;} /* --[[ Sub Expand Icons ]]-- */ #imenus0 ul .imeas span,#imenus0 ul .imeasj span {background-image:url(images/small_red_pointer.jpg); width:7px; height:8px; left:-8px; top:3px; background-repeat:no-repeat;background-position:top left;} #imenus0 ul li:hover .imeas span,#imenus0 ul li a.iactive .imeasj span {background-image:url(images/small_red_pointer.jpg); background-repeat:no-repeat;background-position:top left;} /* --[[ Main Container ]]-- */ #imouter0 {background-color:#546347; border-style:solid; border-color:#000000; border-width:0px 1px; padding:0px 2px; margin:0px; } /* [Rounded Corner Styles] */ .imrcmain0 .imrcolor {background-color:#546347; } .imrcmain0 .imrbcolor {border-color:#444444; } .imrcmain0 .imtopspace {height:0px; } /* --[[ Sub Container ]]-- */ #imenus0 li ul {background-color:#cce7bc; border-style:solid; border-color:#a2a2a2; border-width:0px 1px; padding:5px 7px; } /* [Rounded Corner Styles] */ #imenus0 .imrcolor {background-color:#cce7bc; } #imenus0 .imrbcolor {border-color:#a2a2a2; } #imenus0 .imtopspace {height:6px; } /* --[[ Main Items ]]-- */ #imenus0 li a, #imenus0 .imctitle {color:#ffffff; text-align:center; font-family:Arial; font-size:12px; font-weight:bold; text-decoration:none; border-style:none; border-color:#000000; border-width:0px; padding:2px 5px 2px 12px; } /* [hover] - These settings must be duplicated for IE compatibility.*/ #imenus0 li:hover>a {background-color:#cce7bc; color:#546347; } #imenus0 li a.ihover, .imde imenus0 a:hover {background-color:#cce7bc; color:#546347; } /* [active] */ #imenus0 li a.iactive {} /* --[[ Sub Items ]]-- */ #imenus0 ul a, #imenus0 .imsubc li .imctitle {color:#111111; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; } /* [hover] - These settings must be duplicated for IE comptatibility.*/ #imenus0 ul li:hover>a {background-color:transparent; color:#cc0000; } #imenus0 ul li a.ihover {background-color:transparent; color:#cc0000; } /* [active] */ #imenus0 ul li a.iactive {background-color:#ffffff; } /* [Dividers] */ #imenus0 .dvs {border-bottom-width:1px; border-style:dotted; border-color:#546347; padding-bottom:4px; margin-bottom:4px; }
im_round_corners("top","main");
Who We Are
im_round_corners("top","sub"); Overview Mission & Goals History Management Working at Tyco Press Center Board of Directors
im_round_corners("top","sub"); Overview Electronics Fire & Security Healthcare Plastics & Adhesives Engineered Producs Tyco Worldwide im_round_corners("bottom","sub");
Worldwide
im_round_corners("top","sub"); Europe Asia US & Canada Mexico Australia Middle East im_round_corners("bottom","sub");
Customers im_round_corners("bottom","sub");
Our Commitment
im_round_corners("top","sub"); Overview People & Values Governance Community Environmental im_round_corners("bottom","sub");
Our Business
im_round_corners("top","sub"); Overview Electronics Fire & Security Healthcare Plastics Engineered Producs Tyco Worldwide im_round_corners("bottom","sub");
Investors
im_round_corners("top","sub"); Overview Stock Quotes im_round_corners("bottom","sub");
im_round_corners("bottom","main");

js实现带圆角的多级下拉菜单效果【javascript】
  • JavaScript实现带箭头标识的多级下拉菜单效果【javascript】
  • JavaScript实现带箭头标识的多级下拉菜单效果【javascript】 | JavaScript实现带箭头标识的多级下拉菜单效果【javascript】 ...

    js实现带圆角的多级下拉菜单效果【javascript】
  • javascript实现控制的多级下拉菜单【javascript】
  • javascript实现控制的多级下拉菜单【javascript】 | javascript实现控制的多级下拉菜单【javascript】 ...

    js实现带圆角的多级下拉菜单效果【javascript】
  • jquery实现多级下拉菜单的实例代码【jquery】
  • jquery实现多级下拉菜单的实例代码【jquery】 | jquery实现多级下拉菜单的实例代码【jquery】 ...