日期:2014-05-19  浏览次数:20390 次

谁能给DataList画一条竖线?
DataList一般有三列,我想在每一列的中间画一条竖线,谁帮我画一下,贴一段代码

<asp:datalist   id= "mess "   Height= "100% "   RepeatColumns= "3 "   Runat= "server "   CssClass= "1 ">
<ItemTemplate>
<table   border= "0 "   cellspacing= "1 "   id= "table1sq2 "   bgColor= "#ffffff "   style= "WIDTH:   154px;   HEIGHT:   83px ">
<tr>
<td   colspan= "2 "   height= "62 "   bgColor= "#ffffff ">
<%#   ((DataRowView)Container.DataItem)[ "Remark "]%>
</td>
</tr>
<tr>
<td   height= "18 "   align= "left "   width= "62 "> 审核人: </td>
<td   height= "18 "   align= "left "   width= "88 "> <%#   ((DataRowView)Container.DataItem)[ "User "]%> </td>
</tr>
<tr>
<td   height= "18 "   align= "left "   width= "62 "> 日&nbsp;   期: </td>
<td   height= "18 "   align= "left "   width= "88 "> <%#   ((DataRowView)Container.DataItem)[ "T_Time "]%> </td>
</tr>
</table>
</div>
</ItemTemplate>   </asp:datalist>

------解决方案--------------------
<table border= "0 " cellspacing= "1 " id= "table1sq2 " bgcolor= "#ffffff " style= "WIDTH: 154px; HEIGHT: 83px ">
<tr>
<td colspan= "2 " height= "62 " bgcolor= "#ffffff " style= "border-right: 1px solid ">
<%# ((DataRowView)Container.DataItem)[ "Remark "]%>
</td>
</tr>
<tr>
<td height= "18 " align= "left " width= "62 "> 审核人: </td>
<td height= "18 " align= "left " width= "88 " style= "border-right: 1px solid "> <%# ((DataRowView)Container.DataItem)[ "User "]%> </td>
</tr>
<tr>
<td height= "18 " align= "left " width= "62 "> 日&nbsp; 期: </td>
<td height= "18 " align= "left " width= "88 " style= "border-right: 1px solid "> <%# ((DataRowView)Container.DataItem)[ "T_Time "]%> </td>
</tr>
</table>