前台代码:
<div class="thubpiccur" id="tmb0" onmouseover="setfoc(0);" onmouseout="playit();">
<a href="<%=href1 %>" target="_blank"><img height="48" alt="" src="<%=flashPic1 %>" width="63" /></a>
</div>
cs代码:
href1 = "FlashInfoDisplay.aspx?ID=" + dsFlash.Tables[0].Rows[0]["ID"].ToString();
------解决方案--------------------------------------------------------
检查下样式引用的路径是否正确
------解决方案--------------------------------------------------------
你的图片链接有错误,刚刚帮你试了下图片链接正确就没问题了~
[code=HMTL]
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
string href1 = "FlashInfoDisplay.aspx?ID=1";
string flashPic1 = "../Images/Chrysanthemum.jpg";
%>
<div class="thubpiccur" id="tmb0">
<a href=" <%=href1 %>" target="_blank">
<img height="48" alt="" src=" <%=flashPic1 %>" width="63" /> </a>
</div>
</asp:Content>
[/code]
------解决方案--------------------------------------------------------
- HTML code
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <% string href1 = "FlashInfoDisplay.aspx?ID=1"; string flashPic1 = "../Images/Chrysanthemum.jpg"; %> <div class="thubpiccur" id="tmb0"> <a href=" <%=href1 %>" target="_blank"> <img height="48" alt="" src=" <%=flashPic1 %>" width="63" /> </a> </div></asp:Content>