鱼C论坛

 找回密码
 立即注册
查看: 3535|回复: 3

关于Dreamweaver的问题

[复制链接]
发表于 2021-11-10 00:37:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
我在用DW做了一个表格读取了ACCESS的数据库内容,并且只取前9个,但是读取的数据会在网页中按照一列一直往下走,

但是我希望的是每列三个,一共9行,有大佬知道怎么弄么,因为是学校作业,老师也没讲清楚。

下面我描述下我的要求:

现在是这样的,比如读取出来在网页上显示:
1                    
2
3
4
5
6
7
8
9
而我希望读取出来在网页上显示:
1      4       7
2      5       8
3      6       9
请问是需要改代码还是该什么,完全不会。

送上代码:
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
body {
        background-color: #ffe3c8;
        background -repeat:no-repeat;
        background-size: 100% 100%;
        background-attachment: fixed;
}
body,td,th {
        font-family: "黑体";
        font-size: 25px;
}
</style>
</head>

<body>
<img src="dong.gif" alt="fruit" width="1500" height="500" border="0">
<!--#include file="conn.asp"-->
<table width="1500" border="1">
          <tr height="350">
             <th width="800" height="350" scope="row">
        <table width="1247" border="0">
            <h1>常吃水果 More..</h1>
            <tr>
              <td height="39" colspan="9">无标题内容</td>
            </tr>
            
            <%
                        Set rs=Server.CreateObject("ADODB.Recordset")
                        sqlstr="select top 9 * from newstable order by id desc"
                        rs.open sqlstr,conn,1,1
                         do while (not rs.eof)
                        %>
            
            <tr>
               <td width="110" height="40" ><a href="read.asp?newsid=<%=rs("ID")%>"><%=rs("biaoti")%></td>
                <td width="72" height="40"><%=rs("riqi")%></td>
            </tr>            
                           <%
                                rs.movenext
                                loop
                                rs.close
                                conn.close
                        %>
</table>      
</body>
</html>
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2021-11-10 17:29:10 | 显示全部楼层
布局问题??
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2021-11-10 23:49:44 | 显示全部楼层
对就是布局应该,但是这个太古老的不懂啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2021-11-11 10:57:38 | 显示全部楼层
display: grid;
grid-template-columns: auto auto auto;
给父dom
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-9-28 07:43

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表