Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
size は HTMLSelectElement インターフェイスのプロパティで、一度に表示されるべきオプションの数、つまり行数を指定します。これは、この <select> 要素の size 属性を反映します。省略された場合、値は 0 です。
メモ: 既定では、<select> は multiple が true の場合は 4 つの行が表示されます。それ以外の場合は単一の行を表示します。size プロパティの既定値は 0 です。
数値です。
| HTML # dom-select-size |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年4月12日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.