GifproGifpro

CSS Container Queries インタラクティブプレイグラウンド

代码预览

エディタを読み込み中…
P

提示词

Create an interactive playground to explore CSS Container Queries (size queries only). Include a resizable parent container with three child cards. The children should have styles that change based on the parent's width: narrow, medium, and wide breakpoints (e.g., <300px, 300-500px, >500px). Show the current container width and breakpoint label. Use only container query syntax (no media queries). Keep the code self-contained and visually clean.

このインタラクティブデモでは、リサイズ可能な親コンテナを使用してCSS Container Queriesを体験できます。スライダーをドラッグしてコンテナの幅を変更すると、3つの子カードがリアルタイムで変化します。カードの背景色、角丸、フォントサイズが300px未満、300px〜500px、500px以上の3つのブレークポイントで変わります。すべてのレスポンシブ動作は@containerクエリを使用しており、メディアクエリは使っていません。現在のコンテナ幅とブレークポイントラベルが表示されます。

这个提示对您有帮助吗?

评论

评论将在审核后显示

この記事が役に立ったら投げ銭で応援

Apple Pay / Google Pay / カード (Visa/Mastercard/JCB/Amex) / Link / Alipay / WeChat Pay 対応 · Stripeで安全に決済

開発者が選ぶ最強ツール集

運営者が毎日使っているツール・ガジェット 6選

見る
首页ヘルプ
CSS Container Queries インタラクティブプレイグラウンド | ギフプロ | ギフプロ