隨筆 - 6  文章 - 129  trackbacks - 0
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(14)

          隨筆檔案(6)

          文章分類(467)

          文章檔案(423)

          相冊

          收藏夾(18)

          JAVA

          搜索

          •  

          積分與排名

          • 積分 - 827240
          • 排名 - 49

          最新評論

          閱讀排行榜

          評論排行榜

          <%@ page language="java" contentType="text/html;charset=gbk"%>
          <%@ taglib uri="

          <!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>



          主站蜘蛛池模板: 固镇县| 疏勒县| 四子王旗| 晴隆县| 江津市| 渭南市| 茂名市| 固阳县| 安阳县| 唐海县| 太仓市| 青州市| 普定县| 丰县| 德格县| 蓝田县| 高台县| 离岛区| 安泽县| 新乐市| 特克斯县| 桃园县| 奉化市| 黄大仙区| 萨迦县| 济宁市| 呼伦贝尔市| 太保市| 巩义市| 冀州市| 阆中市| 扶余县| 黄冈市| 特克斯县| 钟山县| 台东县| 西乌| 阿图什市| 阜新市| 高安市| 东乌珠穆沁旗|