CSS:
.nav_bg{background:gray;height:30px;line-height:30px;}
JSP中:
<TD align="center">
<TABLE class=headerMenu width="100%" align=center>
<TBODY>
<TR align=middle>
<TD id=menu1 style="width:14%;"><A href="<%=basePath%>">首页</A>
</TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=1"
<c:if test="${id eq '1'}">class=nav_bg</c:if>>同业对标</A></TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=2"
<c:if test="${id eq '2'}">class=nav_bg</c:if>>运营监测</A></TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=3"
<c:if test="${id eq '3'}">class=nav_bg</c:if>>五位一体和标准化</A></TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=4"
<c:if test="${id eq '4'}">class=nav_bg</c:if>>管理创新和调研</A></TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=5"
<c:if test="${id eq '5'}">class=nav_bg</c:if>>质量管理</A></TD>
<TD style="width:14%;"><A
href="<%=basePath%>/jsp/index/policy.jsp?deptid=6"
<c:if test="${id eq '6'}">class=nav_bg</c:if>>科技论文</A></TD>
</TR>
</TBODY>
</TABLE>
</TD>