<?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/%E4%BA%92%E5%8B%95/</link><description>Recent content in 互動 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Sun, 23 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E4%BA%92%E5%8B%95/index.xml" rel="self" type="application/rss+xml"/><item><title>TailwindCSS 互動性:cursor、scroll-snap、field-sizing 全解 | TailwindCSS 完整教學</title><link>https://benzhub.github.io/post/tailwindcss/023-interactivity/</link><pubDate>Sun, 23 Aug 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/tailwindcss/023-interactivity/</guid><description>&lt;blockquote&gt;
&lt;p&gt;前幾篇我們把元素「排得整齊、看得漂亮」,這一篇要讓介面真正「用起來順手」。&lt;strong&gt;TailwindCSS&lt;/strong&gt; 的互動性(Interactivity)工具,涵蓋 &lt;code&gt;cursor-*&lt;/code&gt;(游標樣式)、&lt;code&gt;pointer-events-*&lt;/code&gt;(指標事件穿透)、&lt;code&gt;select-*&lt;/code&gt;(文字選取)、&lt;code&gt;resize-*&lt;/code&gt;(縮放把手)、&lt;code&gt;scroll-smooth&lt;/code&gt; 與 &lt;code&gt;snap-*&lt;/code&gt;(滾動吸附輪播)、&lt;code&gt;touch-*&lt;/code&gt;(觸控行為)、以及 v4 新增的 &lt;code&gt;field-sizing-content&lt;/code&gt;(自動長高)、&lt;code&gt;scheme-*&lt;/code&gt;(配色宣告)、&lt;code&gt;accent-*&lt;/code&gt;(強調色)、&lt;code&gt;caret-*&lt;/code&gt;(游標色)、&lt;code&gt;will-change-*&lt;/code&gt;(渲染提示)與 &lt;code&gt;appearance-none&lt;/code&gt;(移除原生外觀)。這一組看似瑣碎的細節工具,正是把介面從「能操作」打磨到「好操作」的關鍵——&lt;strong&gt;讓每一次點擊、滑動、輸入都恰到好處&lt;/strong&gt;。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>