日期:2014-05-20  浏览次数:20432 次

vs2005中窗体代码的问题
<img   src= "images/aa.gif "   width= "104 "   height= "127 "   />
这个直接写在窗体的html里就可以
但是写到一个WebUserControl   里  
然后窗体再调用那个WebUserControl就会提示这出错?

-   -!

------解决方案--------------------
xhtml都改用style了,background是旧的属性
------解决方案--------------------
应该采用相对应用
如下代码:
<%@ Control Language= "C# " AutoEventWireup= "true " CodeFile= "UserControl1.ascx.cs " Inherits= "UseControl_UserControl1 " %>

<div id= "Layer0 " style= "Z-INDEX: 5; LEFT: 0px; WIDTH: 42px; POSITION: absolute; TOP: 84px; HEIGHT: 36px ">
<img name= "Image0 " src= "../Images/corner.gif " height= "36 " width= "42 ">
</div>