如何在html中更改列表框的宽度?
问题描述:
如何更改列表框中如何在html中更改列表框的宽度?
<select id ="tagsList" class="ui-widget-content ui-corner-all" width="100" size="18" multiple="multiple">
的宽度,我尝试width="100"
,但它不工作
答
可以使用内联CSS这样的设置宽度:
<select style="width: 100px;"></select>
与您的其余属性。
还有其他方法可以指定元素的宽度,大多数都围绕着CSS。 Here's a link谷歌的CSS教育视频,应该让你更多的准备和准备去。
答
你必须使用CSS的width属性。添加style="width: 100px;"
答
您需要使用CSS:
<select id="tagsList" style="width:100px;">
答
<select id ="tagsList" class="ui-widget-content ui-corner-all" style="width:100;" size="18" multiple="multiple">
这段代码几乎你我刚添加的风格,是足够
链接不再有效,因为大学联盟不再是积极维护。 – keremispirli 2016-02-29 10:28:42