在ASP。NET中的表格中设置背景图像? 你可以先让美工设计出一个你要的图,里面可以包括很多的“比如输入框等控件”然后到dotnet环境中你替换掉成你的控件就可以了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用css控制:style="background-image:url(1.jpg);" 如果是DataGrid WebControl,则可以用DataGrid.BackImageUrl = "1.jpg" 我的页面的的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> 在你需要加上背景的那个单元格里加上:<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"); asp.net 发布到服务器后的问题 利用Repeater如何显示出这样的形式? asp.net中日期与字符串的转化问题 ACCESS数据提取的问题 图片显示~~~~急 谁借给我个支持asp.net的空间啊 ! 谁知道下面的错误是为什么啊?? 如何用验证控件验证dropdownlist中的某一项是否被选中? 类兼容是什么意思?父类赋给子类,或子类赋给父类 都算兼容的吗? 各位谁有用OleDb存取access2000的例子,请给小弟发一份 一个无刷新三级跳的Webservice无法将其值取出??高手们进来看看啊!!求救。 开发一个基于触摸屏的程序
<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>
<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");