急急!!<> 人力资源管理系统 导航菜单有问题!!
发表在JavaWeb图书答疑 2012-04-11
是否精华
版块置顶:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<script language="javascript">
function change(img,subMenu,path,type){
img.src="images/"+path+".GIF";
if(subMenu!=null){
if(type==0){
subMenu.style.display="none";
}else{
subMenu.style.display="";
}
}
}
</script>
<div style="position:absolute">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td onMouseOver="change(ImgUser,NUser,'NUser_r',1)" onMouseOut="change(ImgUser,NUser,'NUser_b',0)">
         <a href="#"><img id="ImgUser" src="images/NUser_b.GIF" width="106" height="48" border="0"></a>
       <div id="NUser" style="background-color:#F3FFD5; border:#75A102 1px solid; width:200px; position:absolute; display:none; left:1px; top: 34px;">

          <table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="user.do?action=listuser">浏览员工信息</a>&nbsp;&nbsp;<a href="adduser.do">添加新员工</a></td>
  </tr>
</table></div></td>
        <td onMouseOver="change(ImgJob,NJob,'NJob_r',1)" onMouseOut="change(ImgJob,NJob,'NJob_b',0)"><a href="#"><img id="ImgJob" src="images/NJob_b.GIF" width="110" height="48" border="0"></a><div id="NJob" style="background-color:#F3FFD5; border:#75A102 1px solid; width:230px; position:absolute; left:110px; display:none; top: 34px;">
          <table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="job.do?action=listjob">浏览应聘信息</a>&nbsp;<a href="addjob.do">添加应聘信息&nbsp;</a><a href="job.do?action=listjob&isstock=yes">浏览人才库</a></td>
  </tr>
</table>
        </div></td>
        <td onMouseOver="change(ImgEducate,NEducate,'NEducate_r',1)" onMouseOut="change(ImgEducate,NEducate,'NEducate_b',0)"><a href="#"><img id="ImgEducate" src="images/NEducate_b.GIF" width="111" height="48" border="0"></a><div id="NEducate" style="background-color:#F3FFD5; border:#75A102 1px solid; width:240px; position:absolute; display:none;left:222px;  top: 34px;">
          <table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="educate.do?action=listeducate">浏览培训计划</a><a href="addeducate.do">&nbsp;添加培训计划</a><a href="educate.do?action=listeducate&educate=1">&nbsp;查看培训总结</a></td>
  </tr>
</table>
        </div></td>
        <td onMouseOver="change(ImgInstitution,NInstitution,'NInstitution_r',1)" onMouseOut="change(ImgInstitution,NInstitution,'NInstitution_b',0)">
          <a href="#"><img id="ImgInstitution" src="images/NInstitution_b.GIF" width="110" height="48" border="0"></a>
      <div id="NInstitution" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none; left:332px;  top: 34px;">
          <table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="institution.do?action=listinstitution">浏览奖惩制度 &nbsp;</a><a href="addinstitution.do">添加奖惩制度</a></td>
  </tr>
</table>
        </div></td>
        <td onMouseOver="change(ImgStipend,NStipend,'NStipend_r',1)" onMouseOut="change(ImgStipend,NStipend,'NStipend_b',0)"><a href="#"><img id="ImgStipend" src="images/NStipend_b.GIF" width="110" height="48" border="0"></a><div id="NStipend" style="background-color:#F3FFD5; border:#75A102 1px solid; width:180px; position:absolute; display:none;left:446px;  top: 34px;">
          <table width="100%" border="0" height="35px" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="stipend.do?action=liststipend">浏览薪金列表</a><a href="addstipend.do"> &nbsp;添加薪金数据</a></td>
  </tr>
</table>
        </div></td>
        <td><a href="logout.jsp"><img src="images/NExit_b.GIF" width="98" height="48" border="0" onMouseOver="change(this,null,'NExit_r',1)" onMouseOut="change(this,null,'NExit_b',0)"></a></td>
        <td><img src="images/NNull.GIF" width="130" height="48"></td>
      </tr>
    </table>

</div>


浏览奖惩制度 和 添加奖惩制度 以及 浏览薪金列表 和 添加薪金数据依次偏离到前面菜单的下面了其他都没问题,希望帮忙解决一下,谢了!
  
分享到:
精彩评论 1
无语_mrkj
学分:3155 LV11
2012-04-11
沙发
这个问题可能是浏览器的分辨率的问题。您调整一下浏览器窗口的大小,看看运行结果。这个程序设计时使用的分辨率应该1024*768。如果调整为这个分辨率后能正常显示,那么,您可以在整个页面的外侧添加一个3列的表格,然后将现在内容放置到这个表格的中间那个单元格中,并设置这个单元格的宽度为1024。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照