datalist数据显示总是不全
<asp:DataListID="DataList1"runat="server"><HeaderTemplate></HeaderTemplate><ItemTempl...
<asp:DataList ID="DataList1" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div style="width: 355px; ">
<table>
<tr style=" height:19px">
<td style="margin:0px; padding:0px; height:20px">
<div style="width: 300px; float: right;margin:0px; padding:0px; height:20px">
<div style="text-align: left; margin:0px; padding:0px; height:16px">
<span style="float: left; width: 300px; text-indent: 0px; overflow: hidden; font-size:14px; line-height:16px">
<a href="NewsContent.aspx?newsid=<%#Eval("DetailID") %>" style="color: #0045AC;margin:0px; padding:0px; height:20px">
<%# ReturnStrT(Eval("D_Title").ToString())%></a></span> <span style="float: right;
width: 75px; text-indent: 0px;">
</span></h5></div>
</div>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:DataList>
效果是 展开
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<div style="width: 355px; ">
<table>
<tr style=" height:19px">
<td style="margin:0px; padding:0px; height:20px">
<div style="width: 300px; float: right;margin:0px; padding:0px; height:20px">
<div style="text-align: left; margin:0px; padding:0px; height:16px">
<span style="float: left; width: 300px; text-indent: 0px; overflow: hidden; font-size:14px; line-height:16px">
<a href="NewsContent.aspx?newsid=<%#Eval("DetailID") %>" style="color: #0045AC;margin:0px; padding:0px; height:20px">
<%# ReturnStrT(Eval("D_Title").ToString())%></a></span> <span style="float: right;
width: 75px; text-indent: 0px;">
</span></h5></div>
</div>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:DataList>
效果是 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询