欢迎来到天天文库
浏览记录
ID:8877958
大小:77.00 KB
页数:9页
时间:2018-04-10
《5款纯div+css制作的弹出菜单(标准且无js).》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、5款纯div+css制作的弹出菜单(标准且无js). 一、最基本的:二级dropdolPUBLIC-//L1.0Transitional//EN.l1/DTD/xhtml1-transitional.dtd><htmlxmlns=.l><head><metahttp-equiv=Content-Typecontent=text/html;charset=utf-8/><title>二级dropdoonstyling*//*setuptheoverallenudiv,thefontandthemargins*/.menu{font-fami
2、ly:arial,sans-serif;argin:0;margin:50px0;}/*removethebulletsandsetthemarginandpaddingtozerofortheunorderedlist*/.menuul{padding:0;margin:0;list-style-type:none;}/*floatthelistsothattheitemsareinalineandtheirpositionrelativesothatthedropdo*/.menuulli{float:left;position:relative;}/*stylethelinkstobe1
3、04pxenuullia,.menuullia:visited{display:block;text-align:center;text-decoration:none;akethedropdoenuulliul{display:none;}/*specifictononIEbroainmenulionhover*/.menuulli:hovera{color:#fff;background:#b3ab79;}/*makethesubmenuulvisibleandpositionitbeneaththemainmenulistitem*/.menuulli:hoverul{display:b
4、lock;position:absolute;top:31px;left:0;enulinks*/.menuulli:hoverullia{display:block;background:#faeec7;color:#000;}/*stylethebackgroundandforgroundcolorsofthelinksonhover*/.menuulli:hoverullia:hover{background:#dfc184;color:#000;}</style><!--[iflteIE6]><styletype=text/css>/*styling
5、specifictoInterExplorerIE5.5andIE6.YettoseeifIE7handlesli:hover*//*Getridofanydefaulttablestyle*/table{border-collapse:collapse;margin:0;padding:0;}/*ignorethelinkusedby'otherbroenuullia.hide,.menuullia:visited.hide{display:none;}/*setthebackgroundandforegroundcolorofthemain12345下一页[这篇文章来自..,]menuli
6、nkonhover*/.menuullia:hover{color:#fff;background:#b3ab79;}/*makethesubmenuulvisibleandpositionitbeneaththemainmenulistitem*/.menuullia:hoverul{display:block;position:absolute;top:32px;left:0;enulinks*/.menuullia:hoverullia{background:#faeec7;color:#000;}/*stylethebackgroundandforgroundcolorsoftheli
7、nksonhover*/.menuullia:hoverullia:hover{background:#dfc184;color:#000;}</style><![endif]--></head><body><divclass=menu><ul><li><aclass=hidehref=../menu/ind
此文档下载收益归作者所有