DIV中RadioButtonList居中的问题

9月 28th, 2009 | Posted by | Filed under 程序设计

本文内容遵从CC版权协议, 可以随意转载, 但必须以超链接形式标明文章原始出处和作者信息及版权声明
网址: http://www.penglixun.com/tech/program/asp_net_div_radiobuttonlist_center_problem.html

嘛,做某EMS网站,有些诡异的ASP.NET控件,CSS不好控制。

例如像RadioButtonList,想让它在DIV里居中,花了我们CSS人员不少心思没搞定。

还是Google方便,一把搞定。

首先在DVI中设置text-align:center;让DIV内的元素居中。

然后在RadioButtonList中设置style=”margin:auto;”才能生效。

好吧,就是这样。

目前还没有任何评论.