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>