开发者

HTML Select, force direction down

开发者 https://www.devze.com 2022-12-30 11:48 出处:网络
Is there a way to force the dropdown direction of a select element in HTML down? At the moment we have a product display page, the select box appears below the halfway mark of the screen i开发者_JAV

Is there a way to force the dropdown direction of a select element in HTML down?

At the moment we have a product display page, the select box appears below the halfway mark of the screen i开发者_JAVA百科n a widescreen resolution and therefore makes the dropdown go up.

Is this possible? Thanks.


Nope, this can't be done with a standard select element.

You would have to use a JavaScript based alternative.

A cursory search doesn't reveal any jQuery/JS based alternatives that explicitly offer setting the direction as an option, but I'm sure there is one out there that does it.


Don't think so, its up to the browser/OS how it does it.

0

精彩评论

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