如何在后台给层添加图片
好好小妖 2008-12-02 01:43:40 如何在后台给层添加图片啊?
部分代码:
switch(sSBZL)
case "5"://"厂车"
isbID=0;
sbicon="Image//设备ICO//常春藤.jpg";
break;
case "1"://"锅炉"
isbID=1;
sbicon="Image//设备ICO//花.jpg";
break;
}
dmap.OnJWtoDP(scale,lon,lat,smaplayer, mlon, mlat,scale,str,out m,out n);
this.showsbico1.Src=sbicon;
this.sbico1.InnerHtml="<div style=\"SRC:"+this.showsbico1.Src+"LEFT:"+m2+"px;TOP:"+n2+"px;WIDTH:"+m1+"px;HEIGHT:"+n1+"px;POSITION: absolute;VISIBILITY: visible;BORDER-RIGHT: black 1px solid;BORDER-TOP: black 1px solid;BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;Z-INDEX: 108;\"></div>"; //图片显示不出来,如何修改呢
前台:
<div id="sbico1" style="BORDER-RIGHT: azure 0px; BORDER-TOP: azure 0px; Z-INDEX: 107; VISIBILITY: visible; BORDER-LEFT: azure 0px; WIDTH: 15px; BORDER-BOTTOM: azure 0px; POSITION: absolute; HEIGHT: 15px" runat="server">
<IMG id="showsbico1" style="BORDER-RIGHT: azure thin; BORDER-TOP: azure thin; VISIBILITY: visible; BORDER-LEFT: azure thin; BORDER-BOTTOM: azure thin" height="15" width="15" runat="server">
</div>