您现在的位置是:首页 > 电脑技术查询 > web开发

移动table的td有关问题

编辑:chaxungu时间:2022-10-02 23:20:18分类:web开发

移动table的td问题
<table style= "width: 100% " background= "images/head_left.gif ">
<tr>
<td align= "left " style= "width:15px; height:15px " valign= "middle "> <img src= " " style= "background-image: url(images/ico/jtzuo.jpg); width: 15px; height: 15px " alt= " " /> </td>
<td style= "width:55px; height:15px; background-image: url(images/Button3.gif); " align= 'center ' valign= "middle " > <a href= 'Default.aspx ' target= 'mainFrame ' > 首 页 </a> </td>
<% Response.Write(GetHead());%>
<td align= "left " style= "width:15px; height:15px " valign= "middle "> <img src= " " style= "width: 15px; height: 15px; background-image: url(images/ico/jtyou.jpg); " alt= " " /> </td>
</tr>
</table>
以上是HTML代码。
以下是cs代码
protected string GetHead()
{
DataSet ds = new DataSet();
string TableBody = " ";
ds = Purview.GetOperation( " ");

for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
if (ds.Tables[0].Rows[i][1].ToString() == "客户 ")
{ //style= 'background-image: url(images/Button2.gif) 'style= "width:69px; height:15px; color: white; "