你可以先让美工设计出一个你要的图,里面可以包括很多的“比如输入框等控件”
然后到dotnet环境中你替换掉成你的控件就可以了

解决方案 »

  1.   

    用css控制:style="background-image:url(1.jpg);"
      

  2.   

    如果是DataGrid WebControl,则可以用DataGrid.BackImageUrl = "1.jpg"
      

  3.   

    我的页面的的HTML脚本是这样子的?
    <center>
    <table border="0" width="532" height="302" cellspacing="0" cellpadding="0" background="images\maillogin.jpg">
    <tr>
    <td width="528" height="36" colspan="3">
    </td>
    </tr>
    <tr>
    <td width="156" height="262" rowspan="7">
    </td>
    <td width="73" height="200" valign="top" align="left" rowspan="6" style="WIDTH: 73px">
    </td>
    <td width="274" height="24" valign="top" align="left"><FONT face="宋体"></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="29" valign="center" align="left"><FONT face="宋体">
    <asp:Label id="Label1" runat="server" Font-Size="Smaller">用户名称:</asp:Label>
    <asp:TextBox id="TextBox1" runat="server" Width="104px" Font-Size="Smaller"></asp:TextBox>
    <asp:Label id="Label3" runat="server" Font-Size="Smaller">@ABC.com.cn</asp:Label></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="12" valign="center" align="left" style="HEIGHT: 12px" noWrap><FONT face="宋体"></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="41" valign="center" align="left" style="HEIGHT: 41px" noWrap><FONT face="宋体">
    <asp:Label id="Label2" runat="server" Font-Size="Smaller">密码:</asp:Label>
    <asp:TextBox id="TextBox2" runat="server" Width="114px" Font-Size="Smaller"></asp:TextBox>
    <asp:Label id="Label4" runat="server" Font-Size="Smaller">(******)</asp:Label></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="36" valign="center" align="left" noWrap><FONT face="宋体"></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="38" valign="center" align="right" noWrap><FONT face="宋体">
    <asp:Button id="Button1" runat="server" Text="登录到电子邮局" Font-Size="Smaller"></asp:Button></FONT>
    </td>
    </tr>
    <tr>
    <td width="274" height="61" colspan="2">
    </td>
    </tr>
    </table>
    </center>
      

  4.   

    在你需要加上背景的那个单元格里加上:
    <td background="imgurl.gif">
    或:
    <td style="background-image:imgurl.gif">如果你用DataGrid,则在相应的Cell里面加上:
    Cell.Atrributes.Add("background","imgurl.gif");
    或:
    Cell.Atrributes.CssStyle.Add("background-image","imgurl.gif");