| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 479 人关注过本帖
标题:初学者求教,为什么运行后显示结果与在frontpage中的不一样
只看楼主 加入收藏
vfp00
Rank: 1
等 级:新手上路
帖 子:241
专家分:0
注 册:2006-2-20
收藏
 问题点数:0 回复次数:0 
初学者求教,为什么运行后显示结果与在frontpage中的不一样

请大家帮我看下,为什么“畅销书排行榜”表头不能与左侧的“文学哲学”链接并排在一行显示,但在FRONTPAGE中显示的是一行的,为什么在IE中我看到的是表头在与链接表的尾部平齐,不是与链接表的顶部平齐。
************************ 以下是 default.asp 代码***************************
<html>
<head>
<title>购书天堂</title>
<meta http-equiv = "content-type" content = "text/html;charset=gb2312">
</head>

<body bgcolor = "#ffffff">
<%
dim weekday,today
today = "#"&formatdatetime(now(),1)&"#rr"
today = #22/12/06#
'cdate(now())
'&formatdatetime(now(),3)
today = #October 19, 1962#
'today = weekday(today)
'response.write myweekday
response.write now()&"--17<br>"
'today = "#"&now()&"#"

'today = weekday(date())
select case 1
case 1 weekdays = "星期一"
case 2 weekdays = "星期二"
case 3 weekdays = "星期三"
case 4 weekdays = "星期四"
case 5 weekdays = "星期五"
case 6 weekdays = "星期六"
case 7 weekdays = "星期天"
end select
'weekdays = "星期一"

set cn = server.createobject("adodb.connection")
cn.open "driver={sql server};database=bookstore;server=sancom-ho\sqlsrv;uid=sa;pwd=goto/6533"
set rs = server.createobject("adodb.recordset")
%>
<table width = "720" border = "0" cellpadding = "1" cellspacing = "0">
<tr>
<td height = "10" colspan = "3">
<table width = "100%" border = "0">
<h1>欢迎光临购书天堂</h1>
</table>
</td>
</tr>
<tr>
<td height = "16" colspan = "3" bgcolor = "#ffffff">
<tr>
<td width = "11%" height = "13" ><b>书店首页</b></td>
<td width = "10%" height = "13"><a href="last.asp">最新图书</a></td>
<td width = "10%" height = "13"><a href="recomment.asp">推荐图书</a></td>
<td colspan = "3" height = "13">现在是&nbsp;<%response.write today&"&nbsp;"&weekdays%></td>
<td width = "10%" height = "13"><a href="guestbook.asp">留言薄</a></td>
<td height = "13" width = "10%" align = "center"><a href = "mailto:1086@263.net">联系我们</a></td>
<td colspan = "2" height = "13" width = "10%" align = "center"><a href = "register.asp">注册</a></td>
</tr>
</table>
<table>
<tr>
<!--59-->
<td height = "558" width = "116" align = "top" rowspan = "5"><!--#include file="left.inc"--></td>
<td height = "558" width = "20" bgcolor = "#ff0000" rowspan = "5">as</td>
<td height = "114" width = "598" valign = "top">
<table width = "100%" border = "0" cellpadding = "2" cellspacing = "2">
<tr>
<td colspan = "7"><b>畅销图书排行榜</b></td>
</tr>
<%
rs.open "select top 10 * from books where remaincount <> 0 order by sums-remaincount desc",cn,3
%>
<tr bgcolor = "#6699cc">
<td height = "35" colspan = "7">
<table width = "100%" border = "0" bgcolor = "#ffffff">
<tr>
<td width = "8%" align = "center">编号</td>
<td width = "32%" align = "center">书名</td>
<td width = "15%" align = "center">单价</td>
<td width = "12%" align = "center">日期</td>
<td width = "12%" align = "center">售出数量</td>
<td width = "14%" align = "center">图书类型</td>
<td width = "7%" align = "center">购买</td>
</tr>
<tr bgcolor = "#6699cc">
<td colspan = "7" height = "1"></td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td width = "8%" align = "center"><%=rs("book_id")%></td>
<td width = "32%" align = "center"><a href="introduce.asp?book_id =<%=rs("book_name")%>"><%=rs("book_name")%></a></td>
<td width = "15%" align = "center"><%=rs("price")%></td>
<td width = "12%" align = "center"><%=formatdatetime(rs("dates"),2)%></td>
<td width = "12%" align = "center"><%=rs("sums")-rs("remaincount")%></td>
<td width = "14%" align = "center"><%=rs("types")%></td>
<td width = "7%" align = "center"><a href ="#" onclick = "window.open('bookbag.asp?action=select&book_id=<%=rs("book_id")%>','select','width=500,height=400')">购买</a></td>
</tr>
<%
if not rs.eof then rs.movenext
loop
%>
</table>
<%
rs.close
%>
</td></tr>
<tr>
<td height = "2" width = "598" valign = "top" bgcolor = "#6699cc"></td>
</tr>
<tr>
<td height = "114" width = "598" valign = "top">
<table width = "100%" border = "0" cellpadding = "2" cellspacing = "2" height="389">
<tr>
<td colspan = "7" height="18"><b>本日推荐图书</b></td>
</tr>
<%
rs.open "select top 10 * from books where remaincount <> 0 and recomment = 1 order by book_id",cn,3
%>
<tr bgcolor = "#6699cc">
<td height = "102" colspan = "7">
<table width = "100%" border = "0" bgcolor = "#ffffff">
<tr>
<td width = "8%" align = "center">编号</td>
<td width = "32%" align = "center">书名</td>
<td width = "15%" align = "center">单价</td>
<td width = "12%" align = "center">日期</td>
<td width = "12%" align = "center">售出数量</td>
<td width = "14%" align = "center">图书类型</td>
<td width = "7%" align = "center">购买</td>
</tr>
<tr bgcolor = "#6699cc">
<td colspan = "7" height = "1"></td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td width = "8%" align = "center"><%=rs("book_id")%></td>
<td width = "32%" align = "center"><a href="introduce.asp?book_id =<%=rs("book_name")%>"><%=rs("book_name")%></a></td>
<td width = "15%" align = "center"><%=rs("price")%></td>
<td width = "12%" align = "center"><%=formatdatetime(rs("dates"),2)%></td>
<td width = "12%" align = "center"><%=rs("sums")-rs("remaincount")%></td>
<td width = "14%" align = "center"><%=rs("types")%></td>
<td width = "7%" align = "center"><a href ="#" onclick = "window.open('bookbag.asp?action=buy&book_id = <%=rs("book_id")%>','select','width=500,height=400')">购买</a></td>
</tr>
<%
if not rs.eof then rs.movenext
loop
%>
</table>
<%
rs.close
%>
</td></tr>
<tr>
<td height = "17" width = "598" valign = "top" bgcolor = "#6699cc"></td>
</tr>
<tr>
<td height="228" width = "598" valign = "top">
<table width = "100%" border = "0" cellpadding = "2" cellsapcing = "2">
<tr>
<td colspan = "7"><b>最新图书</b></td>
</tr>
<%
rs.open "select top 10 * from books where remaincount <> 0 order by book_id desc",cn,3
%>
<tr bgcolor = "#6699cc">
<td height = "35" colspan = "7">
<table width = "100%" border = "0" bgcolor = "#ffffff">
<tr>
<td width = "8%" align = "center">编号</td>
<td width = "32%" align = "center">书名</td>
<td width = "15%" align = "center">单价</td>
<td width = "12%" align = "center">日期</td>
<td width = "12%" align = "center">售出数量</td>
<td width = "14%" align = "center">图书类型</td>
<td width = "7%" align = "center">购买</td>
</tr>
<tr bgcolor = "#6699cc">
<td colspan = "7" height = "1"></td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td width = "8%" align = "center"><%=rs("book_id")%></td>
<td width = "32%" align = "center"><a href="introduce.asp?book_id =<%=rs("book_name")%>"><%=rs("book_name")%></a></td>
<td width = "15%" align = "center"><%=rs("price")%></td>
<td width = "12%" align = "center"><%=formatdatetime(rs("dates"),2)%></td>
<td width = "12%" align = "center"><%=rs("sums")-rs("remaincount")%></td>
<td width = "14%" align = "center"><%=rs("types")%></td>
<td width = "7%" align = "center"><a href ="#" onclick =" window.open('bookbag.asp?action=buy&book_id = <%=rs("book_id")%>','select','width=500,height=400')">购买</a></td>
</tr>
<%
if not rs.eof then rs.movenext
loop
%>
</table>
<%
rs.close
%>
<hr>
<p align = "center"><i>copyright&copy;2000-2001 购书天堂 版权所有 </i></p>
<p align = "center"><i>powered by <a href = "mailto:1086@263.。et">san</a></i></p>
</table>
</body>
********************************* 以下是left.inc的代码 ×××××××××××
<table width = "107" border = "0" cellpadding = "2" cellspacing = "2">
<tr>
<td><a href = "classify.asp?types=ÎÄѧÕÜѧ">ÎÄѧÕÜѧ</a></td>
</tr>
<tr>
<td><a href = "classify.asp?types=¼ÆËã»úͼÊé">¼ÆËã»úͼÊé</a></td>
</tr>
<tr>
<td><a href = "classify.asp?types=¾­¼Ã½ðÈÚ">¾­¼Ã½ðÈÚ</a></td>
</tr>
<tr>
<td><a href = "classify.asp?types=¾üÊ·¨ÂÉ">¾üÊ·¨ÂÉ</a></td>
</tr>
<tr>
<td><a href = "classify.asp?types=ҽѧͼÊé">ҽѧͼÊé</a></td>
</tr>
<tr>
<td><a href = "classify.asp?types=ÆäËûÀà±ð>ÆäËûÀà±ð</a></td>
</tr>
</table>
<form method="get" action="search.asp">
<table width="102" border = "0" cellpadding = "2" cellspacing = "2">
<tr>
<td>ͼÊéËÑË÷</td>
</tr>
<td height = "15">
<input type = "text" name = "name" size = "10">
</td>
</tr>
<tr>
<td>
<select name = "accord">
<option selected>ËÑË÷·½Ê½</option>
<option value = "book_name">°´ÊéÃû</option>
<option value = "press">°´³ö°æÉç</option>
<option value = "author">×÷Õß</option>
</select>
</td>
</tr>
<tr>
<td>
<select name = "types">
<option selected> Ñ¡Ôñ·ÖÀà</option>
<option value = "ÎÄѧÕÜѧ">ÎÄѧÕÜѧ</option>
<option value = "¼ÆËã»úͼÊé">¼ÆËã»úÀà</option>
<option value = "¾­¼Ã½ðÈÚ">¾­¼Ã½ðÈÚ</option>
<option value = "¾üÊ·¨ÂÉ">¾üÊ·¨ÂÉ</option>
<option value = "ҽѧͼÊé">ҽѧͼÊé</option>
<option value = "ÆäËûÀà±ð">ÆäËûÀà±ð</option>
</select>
</td>
</tr>
<tr>
<td>
<input type = "submit" name = "submit" value = "ËÑË÷">
</td>
</tr>
</table>
</form>

图片附件: 游客没有浏览图片的权限,请 登录注册

搜索更多相关主题的帖子: frontpage 结果 
2006-02-20 16:37
快速回复:初学者求教,为什么运行后显示结果与在frontpage中的不一样
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.029297 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved