当前位置: 代码迷 >> ASP.NET >> tabel自适应高度,该如何处理
  详细解决方案

tabel自适应高度,该如何处理

热度:5379   发布时间:2013-02-25 00:00:00.0
tabel自适应高度
<asp:DataList ID="dal_shangpin" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" OnItemCommand="dal_shangpin_ItemCommand" CssClass="procss">
  <ItemTemplate>
  <table style="border-top:solid 1px #DDDDDD;border-left:solid 1px #DDDDDD;border-right:solid 1px #DDDDDD;border-bottom:solid 1px #DDDDDD;" class="procss">
  <tr>
  <td style="height:100%" valign="top" width="200px" align="center">
  <a href="ShowProducts.aspx?productid=<%# Eval("product_id") %>&&str=ss">
  <img src='<%# Eval("product_img") %>' alt="" style="border: 0;" onload="javascript:DrawImage(this,200,280)" width="200px" height="280px" /></a>
 <asp:UpdatePanel ID="UpdatePanel9" runat="server">
  <ContentTemplate>
  <asp:Label ID="Label18" runat="server" Font-Size="12px" ForeColor="#999999" Text='<%#SelectContentCount(Eval("product_id")) %>'></asp:Label>
<asp:LinkButton ID="LinkButton6" runat="server" Font-Size="12px" onmouseover="this.className='color_red'" onmouseout="this.className='color_black'" CssClass="a" CommandArgument='<%#Eval("product_id") %>' CommandName="pinglun">评论</asp:LinkButton>&nbsp;
  <asp:Label ID="Label19" runat="server" Font-Size="12px" ForeColor="#999999" Text='<%#SelectfLikeCount(Eval("product_id")) %>'></asp:Label>
  <asp:LinkButton ID="LinkButton7" runat="server" Font-Size="12px" onmouseover="this.className='color_red'" onmouseout="this.className='color_black'" CssClass="a" CommandArgument='<%#Eval("product_id") %>' CommandName="like">喜欢</asp:LinkButton>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <span style="font-size:12px;color:#999999">¥</span><asp:Label ID="Label10" runat="server" Text='<%# Eval("product_price") %>' Font-Bold="true" ForeColor="red" Font-Size="12px"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel><br />
 <asp:DataList ID="DataList8" runat="server" DataSource='<%# SelectContent(Eval("product_id"))%>' CssClass="procss">
 <ItemTemplate>
 <table align="left">
<tr>
  <td align="left">
  <img src="<%# SelectUserById(Eval("user_id")).User_img %>" alt="" width="24px" height="24px"/>
  </td>
  <td align="left">
  <asp:Label ID="Label20" runat="server" Text='<%#SelectUserById(Eval("user_id")).User_name %>' ForeColor="#D1438A" Font-Size="12px"></asp:Label>
  <span style="font-size:12px;color:#666666">:</span>
  <asp:Label ID="Label21" runat="server" Text='<%#Eval("ps_content") %>' Font-Size="12px" ForeColor="#666666"></asp:Label>
  </td>
  <td>
 </td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</td>