开发者

Removing the scroll bar from a select element

开发者 https://www.devze.com 2022-12-31 22:06 出处:网络
Is there a way to remove the scroll bar in a select element with the \'multiple\' attribute enabled? <select name=\"test\" multiple>

Is there a way to remove the scroll bar in a select element with the 'multiple' attribute enabled?

<select name="test" multiple>
    <option value="foo">Foo</option>
    <option value="bar">Bar</option>
    <option value="baz">Baz</option>
</select&g开发者_运维知识库t;


You should not remove it actually for accessibility reasons. If you do so, it would look like a textarea rather than a multi selectbox.

0

精彩评论

暂无评论...
验证码 换一张
取 消