Are Multi-line Options in Html Select Tags Possibl

2019-01-12 02:12发布

Is it possible (using HTML only) to display select with options that span multiple lines each?

7条回答
混吃等死
2楼-- · 2019-01-12 03:08

not only is it not possible on standard html, but it would then (as an object) become incompatible with the way IOS devices handle the option tag, which is to display a scroll list so it is not even reasonable to want the option tag to behave that way as it would break cross-device compatibility badly and unexpectedly.

as others have answered (i dont have enough reputation to upvote or comment yet) have said, it must be done with css/div styling etc and in that way is a lot more extensible with full html functionality within each of the option tag's as well as (via css styling) being mobile device friendly.

查看更多
登录 后发表回答