搜尋 Mozilla 技術支援網站

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

了解更多

Disable capitalisation on a form field

  • 1 回覆
  • 4 有這個問題
  • 3 次檢視
  • 最近回覆由 Kevin

more options

Firefox for mobile often automatically triggers shift when I focus a form field. Can I design my forms (as a webmaster) so that the first letter will not be capitalised automatically?

Can I do something about it as an user?

Firefox for mobile often automatically triggers shift when I focus a form field. Can I design my forms (as a webmaster) so that the first letter will not be capitalised automatically? Can I do something about it as an user?

所有回覆 (1)

more options

As a webmaster you can use the inputmode attribute. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#attr-inputmode

As a user it would be hard to remove, a bookmarklet or userscript that removed the inputmode attribute would be one way to avoid the web designer's intent.