搜尋 Mozilla 技術支援網站

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

Learn More

Can't disable number input arrows in forms

  • 3 回覆
  • 0 有這個問題
  • 62 次檢視
  • 最近回覆由 TyDraniu

more options

Hi,

As the subject says, i cannot remove the up and down arrows from forms that have a numerical input even though autofill/history options are cleared and disabled. I've even tried deleting cookies, cache, site data and so on, to no avail. I've also tried a clean terminal with no extensions installed and i have the same issue. Other browsers do not have this issue on the exact same form. I am at a loss, any assistance would be appreciated.

Hi, As the subject says, i cannot remove the up and down arrows from forms that have a numerical input even though autofill/history options are cleared and disabled. I've even tried deleting cookies, cache, site data and so on, to no avail. I've also tried a clean terminal with no extensions installed and i have the same issue. Other browsers do not have this issue on the exact same form. I am at a loss, any assistance would be appreciated.
附加的畫面擷圖

所有回覆 (3)

more options

Can you share the working testcase of this input field? On https://codepen.io for instance?

有幫助嗎?

more options

What ways did you try to hide the spinners?

Possible CSS code for userContent.css:

input[type=number] {-moz-appearance: textfield !important}
input[type=number]:not(:focus)::-moz-number-spin-box {display:none !important}

有幫助嗎?

more options

This is default view of this input in Firefox right now. In version 125 stepper arrows will be visible only on mouse hover.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題