搜尋 Mozilla 技術支援網站

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

Learn More

Dinamically populated <select> strange behaviour (wrong height) in Firefox 58

  • 1 回覆
  • 1 有這個問題
  • 2 次檢視
  • 最近回覆由 user1929

more options

I'm experiencing strange behaviour in Firefox for a dropdown <select> I populate via AJAX.

What it does is like this... Select dropdown behaviour

As you can see the dropdown box is somehow considered longer by Firefox, which puts the scroll bar and some of the <option>s out of reach, at the bottom... Neither Chrome nor Safari do the same...

Other facts:

   1. CSS is not styling <select>. Switching off the CSS loading doesn't change anything of this behaviour;
2. <select> is included into a ; 3. The Tabs style is obtained with
I'm experiencing strange behaviour in Firefox for a dropdown <select> I populate via AJAX. What it does is like this... Select dropdown behaviour As you can see the dropdown box is somehow considered longer by Firefox, which puts the scroll bar and some of the <option>s out of reach, at the bottom... Neither Chrome nor Safari do the same... Other facts: 1. CSS is not styling <select>. Switching off the CSS loading doesn't change anything of this behaviour; 2. <select> is included into a <table>; 3. The Tabs style is obtained with <ul> + <li> items. Any ideas? Thank you...

所有回覆 (1)

more options

I think some of the HTML you included got redacted when you posted this. Could you attach an image or a link to the page instead?