為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Word wrap no longer works in text boxes.

  • 2 回覆
  • 8 有這個問題
  • 23 次檢視
  • 最近回覆由 cor-el

more options

I see others noting this problem beginning in March 2015, but no solutions.

Just updated to 39.0, still the problem.

No word wrap within a text posting box on a website, instead the sentence just continues scrolling horizontally.

Apparently Firefox began doing this with 36.0.1.

Was hoping it would be fixed in the newest version, but no.


A search found this post with an illustration of the problem, in case anything is unclear:

http://www.cadillacforums.com/forums/help-desk-site-news-site-problems/676425-word-wrap-text-entry-boxes-not.html

How could this not have been fixed between March and July?

How do I get word wrap within a text box?

Thanks.

I see others noting this problem beginning in March 2015, but no solutions. Just updated to 39.0, still the problem. No word wrap within a text posting box on a website, instead the sentence just continues scrolling horizontally. Apparently Firefox began doing this with 36.0.1. Was hoping it would be fixed in the newest version, but no. A search found this post with an illustration of the problem, in case anything is unclear: http://www.cadillacforums.com/forums/help-desk-site-news-site-problems/676425-word-wrap-text-entry-boxes-not.html How could this not have been fixed between March and July? How do I get word wrap within a text box? Thanks.

所有回覆 (2)

more options

The textbox calculates a max width. It wraps for me on this site.

There are some creative css available that changes this:

See also: -webkit-box-sizing: border-box; -moz-box-sizing: border-box;

more options

Current releases (36+) support the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap. The former will prevent Firefox from wrapping the text.

You can check that in the Inspector via the right-click context menu.

See:

The white-space property is now working on <textarea> HTML elements (bug 82711).

See also: