基于 JQuery 制作的树形下拉菜单-LIEHUO.NET $(document).ready( function() { $(".menuTitle").click(function(){ $(this).next("div").slideToggle("slow") .siblings(".menuContent:visible").slideUp("slow"); $(this).toggleClass("activeTitle"); $(this).siblings(".activeTitle").removeClass("activeTitle"); }); }); body{margin:0;;background-color:#fff;}.container{width:200px; text-align:center; padding:10px;}.menuTitle{width:148px; height:25px; background-color:#6CF; margin:0 auto; line-height:25px; font-size:14px; font-weight:bold;color:#fff; cursor:pointer; margin-top:20px; border:#909 solid 1px;}.activeTitle{width:148px; height:25px;background-color:#6CF; margin:0 auto; line-height:25px; font-size:12.7px; font-weight:bold;color:#F00; cursor:pointer; margin-top:20px;border:#909 solid 1px;}.menuContent{background-color:#0CF; margin:0 auto; min-height:350px; height:100%;_height:350px; width:148px; text-align:left; display:none;}li{list-style-type:none;padding:0px 0px 0px 38px; font-size:12px; height:30px; line-height:24px;}a:link {color: #fff; text-decoration:none;} /* 未访问的链接 */a:visited {color: #fff;text-decoration:none;} /* 已访问的链接 */a:hover {color: #000} /* 当有鼠标悬停在链接上 */ul{margin:0;padding:0;}查看更多关于min-height的不兼容_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did104611
min-height的不兼容_html/css_WEB-ITnose
阅读:35次