搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Combo box list getting widened while selecting

more options

I have an application , which have combo boxes inside a DIV tag. When the length of one the item in the list box is greater the specified length of the combo box, the display of the list gets widened and the combo box widens to the lengthiest items' length and it looks odd.

I want the options to fit to the length of the combo box specified.

I have an application , which have combo boxes inside a DIV tag. When the length of one the item in the list box is greater the specified length of the combo box, the display of the list gets widened and the combo box widens to the lengthiest items' length and it looks odd. I want the options to fit to the length of the combo box specified.

所有回覆 (1)

more options

Could you post a link to a page (actual page or test case) demonstrating the problem?

How are you constraining the width of the <select> control -- have you tried CSS max-width?