搜尋 Mozilla 技術支援網站

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

Learn More

How Do You Enable Experimental CSS?

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

more options

Which is a different topic than a certain other question. Stop making assumptions.

被選擇的解決方法

Some CSS features are turned off by default, and can be turned on by changing a preference in about:config. Rather than read through a list of css*enabled preferences with potentially ambiguous names, it's probably best to find the CSS property you want to experiment with on MDN and check the browser compatibility table at the bottom to discover the corresponding preference, if any.

For example, to use basic shape parameters for clip-path, you need to toggle the layout.css.clip-path-shapes.enabled preference. See: https://developer.mozilla.org/docs/Web/CSS/clip-path

If you do want to view that list of CSS preferences, you can as follows:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste css*enabled and pause while the list is filtered

(3) If you click the Value column heading, the enabled=false preferences should sort to the top for easier spotting

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

所有回覆 (2)

more options

選擇的解決方法

Some CSS features are turned off by default, and can be turned on by changing a preference in about:config. Rather than read through a list of css*enabled preferences with potentially ambiguous names, it's probably best to find the CSS property you want to experiment with on MDN and check the browser compatibility table at the bottom to discover the corresponding preference, if any.

For example, to use basic shape parameters for clip-path, you need to toggle the layout.css.clip-path-shapes.enabled preference. See: https://developer.mozilla.org/docs/Web/CSS/clip-path

If you do want to view that list of CSS preferences, you can as follows:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste css*enabled and pause while the list is filtered

(3) If you click the Value column heading, the enabled=false preferences should sort to the top for easier spotting

more options

That is helpful, thank you.