Home >Web Front-end >HTML Tutorial >One navigation cannot implement all drop-down columns, please help! Thank you very much_html/css_WEB-ITnose
http://www.fzsgsl.gov.cn/
http://d.lanrentuku.com/down/js/daohang-928/
This is the correct way. I don’t know why the bottom row of the navigation column cannot be displayed. Please help me debug it ~
This is the head.htm file
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>{dede:global.cfg_webname/}</title><link type="text/css" href="{dede:global.cfg_templets_skin/}/images/Stylesnobg.css" rel="stylesheet"><link rel="stylesheet" type="text/css" href="css/style.css"><script type="text/javascript" src="js/jquery-1.7.1.min.js"></script><script type="text/javascript" src="js/js.js"></script><script> function winopen(url) { top.location = url; } function winopennew(url) { window.open(url,'_top'); } </script></head><body><table width="994" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody><tr> <td><img src="images/top_01.gif" width="994" height="202"></td> </tr></tbody></table><table width="994" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody><tr> <td height="1" bgcolor="#FFFFFF"></td> </tr></tbody></table> <div class="top"> <ul class="menu"> <li class="no_sub"><a target="_blank" href="http://www.fzsgsl.gov.cn/" class="tablink nosub">首 页</a></li> <li> <a target="" href="#" class="tablink">商会概况</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/gongshanglianjianjie/">工商联简介</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/gongshanglianzhangcheng/">工商联章程</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/gongshanglianlingdao/">工商联领导</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/zhuyaozhinen/">主要职能</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/zuzhijiegou/">组织结构</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shgk/lianxiwomen/">联系我们</a></li> </ul> </li> <li> <a target="" href="#" class="tablink">新闻中心</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shdt/tzgg/">通知公告</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shdt/tongzhigonggao/">时政要文</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shdt/shiliandongtai/">市联动态</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/shdt/jicengduanbo/">基层短波</a></li> </ul> </li> <li> <a href="http://www.fzsgsl.gov.cn/html/sysh/">经济服务</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/sysh/youhaojiaowang/">政策法规</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/sysh/jiaoyupeiyu/">教育培训</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/sysh/jiaoyupeiyu/">对外联络</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/sysh/falvweiquan/">法律维权</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/sysh/jrfw/">金融服务</a></li> </ul> <div class="hot"></div> </li> <li> <a target="" href="#" class="tablink">参政议政</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/fwjg/diaoyanxinxi/">调研信息</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/fwjg/tianyian/">提案议案</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/fwjg/jingyanhuicui/">经验会碎</a></li> </ul> </li> <li> <a target="" href="#" class="tablink">会员组织</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/yhsh/ruhuizhinan/">入会指南</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/yhsh/jicengshanghui/">基层商会</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/yhsh/yidishanghui/">异地商会</a></li> </ul> </li> <li> <a target="" href="#" class="tablink">光彩扶贫</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/qyfc/guangcaigongyishiye/">光彩事业</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/html/qyfc/xinnongcunjianshe/">新农村建设</a></li> </ul> <div class="new"></div> </li> <li> <a target="" href="#" class="tablink">非公党建</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/a/feigongdangjian/gongzuojigou/">工作机构</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/a/feigongdangjian/zhizerenwu/">工作职能</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/a/feigongdangjian/dangjiandongtai/">党建动态</a></li> </ul> </li> <li> <a target="" href="#" class="tablink">会员风采</a> <ul> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/a/huiyuanfengcai/lingjunrenwu/">领军人物</a></li> <li><a target="_blank" href="http://www.fzsgsl.gov.cn/a/huiyuanfengcai/qiyedongtai/">企业动态</a></li> </ul> </li> </ul> </div></div><table width="994" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody><tr> <td background="images/top_03.jpg"><table width="100%" height="29" border="0" cellspacing="0" cellpadding="0"> <tbody><tr> <td align="left"><iframe src="weather.htm" width="280" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowtransparency="true"></iframe></td> </tr> </tbody></table></td> </tr></tbody></table></body></html>
/*---------------------页面基础定义----------------------------------*/body,td,th { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; color: #333333;}body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}/*---------------------链接定义----------------------------------*/a { color: #333333; text-decoration: none;}a:hover { color: #FF0000; text-decoration: none;}a:active{ color: #FF0000; text-decoration: none;}/*---------------------菜单样式----------------------------------*/#menu{ height:32px; margin-top:8px; background-color:#990000;}#menu ul{ margin:auto; width:778px; height:32px; list-style-type:none; padding:0px; margin-top:0px; margin-bottom:0px;}.m_li{ float:left; width:114px; line-height:32px; text-align:center; margin-right:-2px; margin-left:-2px;}.m_li a{ display:block; color:#FFFFFF; width:114px;}.m_line{ float:left; width:1px; height:32px; line-height:32px; /*ff下有效(图片垂直居中)*/}.m_line img{ margin-top:expression(( 32 - this.height ) / 2); /*ie下有效(图片垂直居中)*/}.m_li_a{ float:left; width:114px; line-height:32px; text-align:center; padding-top:3px; font-weight:bold; background-image:url(../images/menu_bg.jpg); position:relative; height:32px; margin-top:-3px; margin-right:-2px; margin-left:-2px;}.m_li_a a{ display:block; color:#FF0000; width:114px;}.smenu{ width:774px; margin:0px auto 0px auto; padding:0px; list-style-type:none; height:32px;}.s_li{ line-height:32px; width:auto; display:none; height:32px; }.s_li_a{ line-height:32px; width:auto; display:block; height:32px; }
According to my thinking, this problem must use js, first of all Set all drop-down menus to be hidden, and position each menu relatively, and then use js to make it appear when clicked or when the mouse passes. This also involves the use of DOM technology---getElementById().
According to my idea, this problem must use js. First, set all the drop-down menus to be hidden, and relative position each menu, and then use js to make it appear when clicked or the mouse passes. This will also involve DOM technology---the usage of getElementById().
According to my idea, this problem must use js. First, set all the drop-down menus to be hidden, and relative position each menu, and then use js to make it appear when clicked or the mouse passes. This will also involve DOM technology---the usage of getElementById().