列表框中项目的居中对齐方式 [英] Center alignment of items in listbox
本文介绍了列表框中项目的居中对齐方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要在firebox中工作的列表框中的文本中心对齐,而它在IE8,IE9和IE10中不起作用。如果你有任何解决方案,请建议。
I want center alignment of text in listbox which is working in firefox whereas its not working in IE8,IE9 and IE10.So please suggest if you have any solutions.
推荐答案
我认为列表项对齐中心没有属性,但您可以使用 在文本和调整文本数据。
I Think there is no property for list-item align center but you can use in text and adjust text data.
感谢您的回复,请看看下面给出的代码在firefox中工作而不是在IE8中。
asp:ListBox ID = lstPublisher; RUNAT =服务器; Style = min-height:50px; max-height:100%;
宽度:100%!重要; text-align:center!important;
如果您有任何代码,请发布
Thanks for the reply,please have a look at code given below working in firefox and not in IE8.
asp:ListBox ID=lstPublisher; runat=server; Style=min-height: 50px; max-height: 100%;
width: 100% !important; text-align:center !important;
If you have any piece of code,Please post it
这篇关于列表框中项目的居中对齐方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文