Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
style は CSSFunctionDeclarations インターフェイスの読み取り専用プロパティで、CSSFunctionDescriptors オブジェクトを保持しています。これは @function ルール本体で利用可能な記述子を表します。
CSSFunctionDescriptors オブジェクトです。
style プロパティ自体は、CSSFunctionDescriptors オブジェクトを置き換えられないという意味で読み取り専用ですが、style プロパティに直接代入することは可能です。これは、その cssText プロパティへの代入と同等です。また、setProperty() メソッドと removeProperty() メソッドを使用して CSSFunctionDescriptors オブジェクトを変更することもできます。
例については主となる CSSFunctionDeclarations のリファレンスページを参照してください。
| CSS Functions and Mixins Module # dom-cssfunctiondeclarations-style |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年2月5日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.