日期:2014-05-16  浏览次数:20342 次

移动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()   ==   "客户 ")