tiancanii 发表于 2021-11-10 00:37:57

关于Dreamweaver的问题

我在用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>

Gacy 发表于 2021-11-10 17:29:10

布局问题??

tiancanii 发表于 2021-11-10 23:49:44

对就是布局应该,但是这个太古老的不懂啊

yuesezhenmei 发表于 2021-11-11 10:57:38

display: grid;
grid-template-columns: auto auto auto;
给父dom
页: [1]
查看完整版本: 关于Dreamweaver的问题