随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 814925
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

<%@ page language="java" contentType="text/html;charset=gbk"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>柱状图显示页面</title>
  </head>
  <body>
    <div align="center">
      <h3>Color Bar Chart (horizontal)</h3>
      <table width="60%">
        <c:forEach var="col" items="${weekWeather}">
          <tr>
            <td align="right" width="20%">${col.item }(${col.percent }%)</td>
            <td align="left" width="80%">
              <table width="100%" height="20">
                <tr>
                  <td width="${col.percent }%" bgcolor="#003366"></td>
                  <td width="${100-col.percent }%"></td>
                 </tr>
              </table>
        </c:forEach>
      </table>
      <hr>
      <h3>Color BAr Chart (vertical)</h3>
      <table width="300" height="500">
        <tr>
        <c:forEach var="row" items="${weekWeather }">
         <td>
          <table width="100%" height="100%">
             <tr>
               <td height="${100-row.percent }%"></td>
             </tr>
               <tr>
              <td height="${row.percent }%" bgcolor="#006633"></td>
            </tr>
            <tr>
              <td align="center">${row.item }(${row.percent }%)</td>
            </tr>
          </table>
      </td>
        </c:forEach>
        </tr>
      </table>
    </div>
  </body>
</html>



posted on 2007-08-27 10:41 Ke 阅读(945) 评论(0)  编辑  收藏 所属分类: struts

只有注册用户登录后才能发表评论。


网站导航: