日期:2014-05-17  浏览次数:20477 次

asp.net2005设计视图与运行后的效果不一致?非常感谢大家呀!
如下html,在设计视图中版面都非常整齐,没有什么问题
我仔细分析了html,看不出来什么问题
但运行后就像一样是一个表格嵌套另一个表格样,感觉好怪哦!
最奇怪的是运行后,最下面还有一很大块空白区域,不知道从那里来的?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="IncomeToday.aspx.cs" Inherits="Finance_PaidToday" %>

<!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" >
<head runat="server">
  <title>无标题页</title>
  <link href="../style/data_table.css" rel="stylesheet" type="text/css" />
  <link href="../themes/blue/style/style.css" rel="stylesheet" type="text/css" />
  <script src="../JS/Index.js" type="text/javascript"></script>
  <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body>
  <form id="form1" runat="server">
  <div> 
<table class="com_table" style="width: 95%; height: 453px" >
<thead>
  <tr>
  <th colspan="7" style="height: 32px">今日收入</th>
  </tr>
  </thead>  
  <tbody>
  <tr>
  <th class="t_title" colspan="7">今日定单</th>
  </tr>
  <tr class="odd"><td colspan="7" style="text-align: left; height:auto; vertical-align:top">
  <weberp:Repeater ID="rpPlayer" runat="server" PageSize="5">
  <HeaderTemplate>
  <table class="com_table" >
  <thead>
  <tr>
  <th>订单号</th>
  <th>客户姓名</th>
  <th>套系(订金/余款)</th>
  <th>联系电话</th>
  <th>签单时间</th>
  <th>咨询顾问</th>
  </tr>
  </thead>
  </HeaderTemplate>
  <ItemTemplate>
  <tbody>
  <% i++;
  if (i % 2 == 1)
  {
  Response.Write(" <tr class='odd'>");
  }
  else
  {
  Response.Write(" <tr align='center'>"); 
  }  
  %> 
  <th class="two"><%#Eval("OrderFormID")%></th>  
  <td align="center"><%# Eval("ProductID")%>(<span class="dj"><%#Eval("Deposit")%></span>/<span class="red"><%#Eval("SpareMoney")%></span>)</td>
  <td align="center&q