如何管理ASP的宽度:DropDownList容器。 [英] How to Manage the width of ASP:DropDownList Container.

查看:96
本文介绍了如何管理ASP的宽度:DropDownList容器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的页面上有一个ASP:DropDownList。并且我设置的控制宽度是正常的。但是当单击列表时,Container宽度将根据所有项目的最大长度消耗。那么如何管理容器宽度?&

I have a ASP:DropDownList on my page. And the control width is normal that I've set. But when clicking on list, the Container width expends according to max length of all the items. So how to manage the container width?&

推荐答案

@manudhiman6:它采用最大长度控件的行为,你必须通过CSS调整宽度。你可以使用css,style =width:150px; ,这将使你的控件的宽度保持一致。
@manudhiman6: Its the behaviour of the control to adopt max length, you have to adjust width via CSS. You can use the css, style="width: 150px;" , this will keep your control's width consistent.


这篇关于如何管理ASP的宽度:DropDownList容器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆