<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>響應式 on BenzHub</title><link>https://benzhub.github.io/tags/%E9%9F%BF%E6%87%89%E5%BC%8F/</link><description>Recent content in 響應式 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Mon, 24 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E9%9F%BF%E6%87%89%E5%BC%8F/index.xml" rel="self" type="application/rss+xml"/><item><title>TailwindCSS 響應式設計:斷點、mobile-first 與容器查詢全解 | TailwindCSS 完整教學</title><link>https://benzhub.github.io/post/tailwindcss/024-responsive-design/</link><pubDate>Mon, 24 Aug 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/tailwindcss/024-responsive-design/</guid><description>&lt;blockquote&gt;
&lt;p&gt;前面 23 篇我們把單一畫面「排得整齊、看得漂亮、用起來順手」,但真實世界的網頁必須同時面對手機、平板、桌機三種天差地遠的螢幕。這一篇 &lt;strong&gt;TailwindCSS&lt;/strong&gt; 的響應式設計(Responsive Design),要用 &lt;code&gt;sm:&lt;/code&gt;、&lt;code&gt;md:&lt;/code&gt;、&lt;code&gt;lg:&lt;/code&gt;、&lt;code&gt;xl:&lt;/code&gt;、&lt;code&gt;2xl:&lt;/code&gt; 這組斷點(breakpoint)前綴,加上 &lt;strong&gt;mobile-first&lt;/strong&gt;(行動優先)哲學、v4 內建的 max-* 區間變體、任意斷點 &lt;code&gt;min-[...]&lt;/code&gt;,以及依「容器寬度」而非視窗寬度響應的容器查詢(container query)&lt;code&gt;@container&lt;/code&gt;,讓&lt;strong&gt;同一份程式碼,在所有螢幕上都呈現最佳樣貌&lt;/strong&gt;。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>