如何在asp.net中动态地添加了标签文本空间 [英] How to add space for Label text dynamically in asp.net
本文介绍了如何在asp.net中动态地添加了标签文本空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好我试图动态地添加图像到标签
如下工作正常,但我想补充一个空间
图像后,我想写出吨所需的文字我试图如下,但我无法找到图像与文字之间的间距
Hi all i am trying to add an image dynamically to a Label
as follows which works fine, but i would like to add a space
after the image and i would like to write mt required text i tried as follows but i am unable to find space between image and text
Label1.Text = "<img src='Images/warning (1).png' />Select atleast one?";
我需要的映像后的空间(标签空间)
I need space(tab space) after the image
我的present的有:
My present one is as follows
推荐答案
添加&放大器; NBSP;
(空格)
Label1.Text = "<img src='Images/warning (1).png' /> Select atleast one?";
这篇关于如何在asp.net中动态地添加了标签文本空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文