搜尋 Mozilla 技術支援網站

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

了解更多

Pre/code tags sometimes show incorrectly

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

more options

Viewing code snippets on Slack is broken. I can view code on Microsoft.com fine, and Slack in Edge displays correctly. So, I don't know if it's a Slack or Firefox issue or some combination.

Found a post about checking the monospace font, but that seems fine.

Firefox 94.0.1 (up-to-date).

I've tried disabling all extensions.

Screenshot below:

Viewing code snippets on Slack is broken. I can view code on Microsoft.com fine, and Slack in Edge displays correctly. So, I don't know if it's a Slack or Firefox issue or some combination. Found a post about checking the monospace font, but that seems fine. Firefox 94.0.1 (up-to-date). I've tried disabling all extensions. Screenshot below:

被選擇的解決方法

I'm sorry, but it seemed to be a problem just with one article on Slack. I don't know how to delete my question, but I'm sorry for the false report.

從原來的回覆中察看解決方案 👍 0

所有回覆 (3)

more options

Screenshot didn't take first time.

more options

選擇的解決方法

I'm sorry, but it seemed to be a problem just with one article on Slack. I don't know how to delete my question, but I'm sorry for the false report.

more options

You can right-click and select "Inspect Element" to open the built-in Inspector with this element selected.

You can check in the Rules tab in the right panel in the Inspector what font-family is used for selected text. You can check in the Font tab in the right panel in the Inspector what font is actually used because Firefox might be using a different font than specified by the website.