日期:2014-05-18  浏览次数:20643 次

jsp 按列显示
<%@page   contentType= "text/html;   charset=gb2312 "   language= "java "   import= "java.sql.* "   errorPage= " "%>
<!DOCTYPE   html   PUBLIC   "-//W3C//DTD   XHTML   1.0   Transitional//EN "   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html   xmlns= "http://www.w3.org/1999/xhtml ">
<%@page   import= "beans.connDB "%>
<%
    connDB   conn   =   new   connDB();
    ResultSet   rs1   =   conn.executeQuery( "select   top   4   *     from   zhuanti     order   by   datetime   desc ");
    ResultSet   rs2   =   conn.executeQuery( "select   top   4   *   from   shidian     order   by   datetime   desc ");
    ResultSet   rs3   =   conn.executeQuery( "select   top   8   *   from   jinghua     order   by   datetime   desc ");
%>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 "/>
<title> 无标题文档 </title>
<style   type= "text/css ">
    <!--
        .STYLE23   {color:     #9999FF;
        font-size:   16px;}
        .STYLE24   {color:   #FF0000;
        font-size:   12px;}
        .STYLE28   {
        font-size:   24px;
        color:   #FF0000;
        }
        .STYLE29   {
        font-size:   18px;
        color:   #CC3399;
        }
    -->
</style>
</head>
<body>
<table   width= "518 "   height= "247 ">
    <tr>
        <td   height= "26 "   colspan= "2 ">
            <span   class= "STYLE28 "> 最新专题报道 </span>
        </td>
    </tr>
    <tr>
        <td   width= "168 "   height= "211 ">
            <img   src= "images/1.jpg "   width= "157 "   height= "209 "/>
        </td>
        <td   width= "1 "   background= "images/shuxian.bmp "> &nbsp; </td>
        <td   width= "400 ">
            <table   width= "344 "   height= "211 ">
                <tr>
                <%
                    int   ID   = &nbs