如何将图像包装在容器中,然后在图像之后添加标签控件 [英] How to wrap image in a container then adding a label control after image
本文介绍了如何将图像包装在容器中,然后在图像之后添加标签控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< 文章 id = ti class = site >
< h5 >
< ; asp:标签 ID = lblParty1 runat = server 文字 = Label1 > < / asp:标签 >
< / h5 >
< div class = shot >
< a href = http://vogue.co.uk/ >
< asp:Image class = 智能手机 ID = imgParty1 runat = server > < / asp:Image >
< / a &G t;
< asp:图像 class = netbook ID = Image1 runat = server > < / asp:Image >
< asp:Image class = 上网本 ID = Image2 runat = 服务器 > < / asp:图片 >
< asp:Image class = 上网本 ID = Imag e3 runat = server > < < span class =code-leadattribute> / asp:Image >
< / div >
< / article >
i希望将image1,image2,image3包装在某个容器中,如Panel,然后是所有Label后的Image通过使用Panel.controls.add(Label1);
解决方案
这是ASP.NET中最基本的东西。您可能需要从头开始阅读ASP.NET的用法。
基本上,您可以在服务器端脚本分隔符或ASP.NET中附加一些C#代码内联表达式: http://support.microsoft.com/kb/976112 [ ^ ]。
- SA
<article id="ti" class="site">
<h5>
<asp:Label ID="lblParty1" runat="server" Text="Label1"></asp:Label>
</h5>
<div class="shots">
<a href="http://vogue.co.uk/">
<asp:Image class="smartphone" ID="imgParty1" runat="server"></asp:Image>
</a>
<asp:Image class="netbook" ID="Image1" runat="server"></asp:Image>
<asp:Image class="netbook" ID="Image2" runat="server"></asp:Image>
<asp:Image class="netbook" ID="Image3" runat="server"></asp:Image>
</div>
</article>
i want to wrap image1,image2,image3 in some container like Panel, and then all Label after Image by using Panel.controls.add(Label1);
解决方案
This is the very basic thing in ASP.NET. You probably need to read on ASP.NET usage from scratch.
Basically, you can enclose some C# code in "server-side scripting delimiters" or "ASP.NET inline expressions": http://support.microsoft.com/kb/976112[^].
—SA
这篇关于如何将图像包装在容器中,然后在图像之后添加标签控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文