CSS At-Rules

最終更新:2026-09-13

CSS At-Rules

At-rules are CSS statements that instruct the engine with a keyword preceded by @, e.g. @media, @keyframes.

Conditional

CSS At-RulesDescription
@mediaApplies styles only when a media query condition is true.
@supportsApplies styles only when the browser supports a given feature.
@containerApplies styles based on the size of a query container.

Animation

CSS At-RulesDescription
@keyframesDefines the steps of a CSS animation sequence.

Structure

CSS At-RulesDescription
@importImports another stylesheet into the current one.
@charsetSpecifies the character encoding of the stylesheet.
@layerDeclares a cascade layer to control specificity order.
@namespaceDeclares an XML namespace for selectors.

Fonts

CSS At-RulesDescription
@font-faceDefines a custom font to be downloaded and used.

Print

CSS At-RulesDescription
@pageSets properties of printed pages (size, margins).
Web-Tutorial.com

Web-Tutorial 技術チーム

複数の開発者によって共同維持されているプログラミングチュートリアルプラットフォーム。各チュートリアルは専門分野の開発者が執筆・レビューしています。正確で信頼性の高いコンテンツを目指しています — 問題を見つけた場合はお知らせください。

100%