如何在asp.net中的下拉列表的2个列表项之间添加空格 [英] How to add Space between 2 list items of dropdown list in asp.net
本文介绍了如何在asp.net中的下拉列表的2个列表项之间添加空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我的要求是在asp.net的drowdownlist的两个列表项之间添加一些空格。
如何用CSS完成?
提前Tnks。
问候
Sandeep M
Hi All,
My Requirement is to add some space between two list items of drowdownlist in asp.net.
How it can be done with CSS ?
Tnks in advance.
Regards
Sandeep M
推荐答案
所有关于间距和相关方面可在此处找到: http://www.w3.org/TR/CSS2/box.html [ ^ ]。
-SA
All about spacing and related aspects can be found here: http://www.w3.org/TR/CSS2/box.html[^].
—SA
您好,
感谢您的回复。
但这不是我的要求。
my asp.net代码是
Hi,
Thanks for your reply.
But it is not my requirement.
my asp.net code is
<asp:DropDownList runat="server" ID="ddlTest">
<asp:ListItem Text="text1" />
<asp:ListItem Text="text2" />
</asp:DropDownList>
please sugge另一个解决方案是css。
please suggest another solution for css.
这篇关于如何在asp.net中的下拉列表的2个列表项之间添加空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文