
- Tailwind CSS 教程
- Tailwind CSS - 首頁
- Tailwind CSS - 路線圖
- Tailwind CSS - 簡介
- Tailwind CSS - 安裝
- Tailwind CSS - 編輯器設定
- Tailwind CSS - 核心概念
- Tailwind CSS - 實用優先基礎
- Tailwind CSS - 懸停、焦點和其他狀態
- Tailwind CSS - 響應式設計
- Tailwind CSS - 深色模式
- Tailwind CSS - 重用樣式
- Tailwind CSS - 新增自定義樣式
- Tailwind CSS - 函式和指令
- Tailwind CSS - 自定義
- Tailwind CSS - 配置
- Tailwind CSS - 內容配置
- Tailwind CSS - 主題配置
- Tailwind CSS - 自定義螢幕
- Tailwind CSS - 自定義顏色
- Tailwind CSS - 自定義間距
- Tailwind CSS - 外掛
- Tailwind CSS - 預設
- Tailwind CSS - 基礎樣式
- Tailwind CSS - 預設樣式
- Tailwind CSS - 佈局
- Tailwind CSS - 寬高比
- Tailwind CSS - 容器
- Tailwind CSS - 列
- Tailwind CSS - 斷行後
- Tailwind CSS - 斷行前
- Tailwind CSS - 斷行內
- Tailwind CSS - 邊框裝飾斷開
- Tailwind CSS - 盒子大小
- Tailwind CSS - 顯示
- Tailwind CSS - 浮動
- Tailwind CSS - 清除浮動
- Tailwind CSS - 隔離
- Tailwind CSS - 物件適應
- Tailwind CSS - 物件位置
- Tailwind CSS - 溢位
- Tailwind CSS - 滾動溢位行為
- Tailwind CSS - 位置
- Tailwind CSS - 上/右/下/左
- Tailwind CSS - 可見性
- Tailwind CSS - Z-index
- Tailwind CSS - Flexbox 和 Grid
- Tailwind CSS - Flex 基準
- Tailwind CSS - Flex 方向
- Tailwind CSS - Flex 換行
- Tailwind CSS - Flex
- Tailwind CSS - Flex 伸長
- Tailwind CSS - Flex 收縮
- Tailwind CSS - 排序
- Tailwind CSS - 網格模板列
- Tailwind CSS - 網格列開始/結束
- Tailwind CSS - 網格模板行
- Tailwind CSS - 網格行開始/結束
- Tailwind CSS - 網格自動流
- Tailwind CSS - 網格自動列
- Tailwind CSS - 網格自動行
- Tailwind CSS - 間隙
- Tailwind CSS - 內容對齊
- Tailwind CSS - 專案對齊
- Tailwind CSS - 自身對齊
- Tailwind CSS - 內容排列
- Tailwind CSS - 專案排列
- Tailwind CSS - 自身排列
- Tailwind CSS - 內容放置
- Tailwind CSS - 專案放置
- Tailwind CSS - 自身放置
- Tailwind CSS - 間距
- Tailwind CSS - 內邊距
- Tailwind CSS - 外邊距
- Tailwind CSS - 元素間距
- Tailwind CSS - 大小
- Tailwind CSS - 寬度
- Tailwind CSS - 最小寬度
- Tailwind CSS - 最大寬度
- Tailwind CSS - 高度
- Tailwind CSS - 最小高度
- Tailwind CSS - 最大高度
- Tailwind CSS - 尺寸
- Tailwind CSS - 排版
- Tailwind CSS - 字體系列
- Tailwind CSS - 字型大小
- Tailwind CSS - 字型平滑
- Tailwind CSS - 字型樣式
- Tailwind CSS - 字型粗細
- Tailwind CSS - 數字字型變體
- Tailwind CSS - 字母間距
- Tailwind CSS - 行數限制
- Tailwind CSS - 行高
- Tailwind CSS - 列表樣式圖片
- Tailwind CSS - 列表樣式位置
- Tailwind CSS - 列表樣式型別
- Tailwind CSS - 文字對齊
- Tailwind CSS - 文字顏色
- Tailwind CSS - 文字裝飾
- Tailwind CSS - 文字裝飾顏色
- Tailwind CSS - 文字裝飾樣式
- Tailwind CSS - 文字裝飾粗細
- Tailwind CSS - 文字下劃線偏移
- Tailwind CSS - 文字轉換
- Tailwind CSS - 文字溢位
- Tailwind CSS - 文字換行
- Tailwind CSS - 文字縮排
- Tailwind CSS - 垂直對齊
- Tailwind CSS - 空格
- Tailwind CSS - 斷詞
- Tailwind CSS - 連字元
- Tailwind CSS - 內容
- Tailwind CSS - 背景
- Tailwind CSS - 背景附件
- Tailwind CSS - 背景裁剪
- Tailwind CSS - 背景顏色
- Tailwind CSS - 背景原點
- Tailwind CSS - 背景位置
- Tailwind CSS - 背景重複
- Tailwind CSS - 背景大小
- Tailwind CSS - 背景圖片
- Tailwind CSS - 漸變顏色停止
- Tailwind CSS - 邊框
- Tailwind CSS - 邊框半徑
- Tailwind CSS - 邊框寬度
- Tailwind CSS - 邊框顏色
- Tailwind CSS - 邊框樣式
- Tailwind CSS - 分割線寬度
- Tailwind CSS - 分割線顏色
- Tailwind CSS - 分割線樣式
- Tailwind CSS - 輪廓寬度
- Tailwind CSS - 輪廓顏色
- Tailwind CSS - 輪廓樣式
- Tailwind CSS - 輪廓偏移
- Tailwind CSS - 環寬度
- Tailwind CSS - 環顏色
- Tailwind CSS - 環偏移寬度
- Tailwind CSS - 環偏移顏色
- Tailwind CSS - 效果
- Tailwind CSS - 盒子陰影
- Tailwind CSS - 盒子陰影顏色
- Tailwind CSS - 不透明度
- Tailwind CSS - 混合模式
- Tailwind CSS - 背景混合模式
- Tailwind CSS - 濾鏡
- Tailwind CSS - 模糊
- Tailwind CSS - 亮度
- Tailwind CSS - 對比度
- Tailwind CSS - 投影
- Tailwind CSS - 灰度
- Tailwind CSS - 色相旋轉
- Tailwind CSS - 反相
- Tailwind CSS - 飽和度
- Tailwind CSS - 棕褐色
- Tailwind CSS - 背景模糊
- Tailwind CSS - 背景亮度
- Tailwind CSS - 背景對比度
- Tailwind CSS - 背景灰度
- Tailwind CSS - 背景色相旋轉
- Tailwind CSS - 背景反相
- Tailwind CSS - 背景不透明度
- Tailwind CSS - 背景飽和度
- Tailwind CSS - 背景棕褐色
- Tailwind CSS - 表格
- Tailwind CSS - 邊框摺疊
- Tailwind CSS - 邊框間距
- Tailwind CSS - 表格佈局
- Tailwind CSS - 標題位置
- Tailwind CSS - 過渡和動畫
- Tailwind CSS - 過渡屬性
- Tailwind CSS - 過渡持續時間
- Tailwind CSS - 過渡時間函式
- Tailwind CSS - 過渡延遲
- Tailwind CSS - 動畫
- Tailwind CSS - 變換
- Tailwind CSS - 縮放
- Tailwind CSS - 旋轉
- Tailwind CSS - 平移
- Tailwind CSS - 傾斜
- Tailwind CSS - 變換原點
- Tailwind CSS - 互動性
- Tailwind CSS - 強調色
- Tailwind CSS - 外觀
- Tailwind CSS - 游標
- Tailwind CSS - 游標顏色
- Tailwind CSS - 指標事件
- Tailwind CSS - 調整大小
- Tailwind CSS - 滾動行為
- Tailwind CSS - 滾動邊距
- Tailwind CSS - 滾動填充
- Tailwind CSS - 滾動捕捉對齊
- Tailwind CSS - 滾動捕捉停止
- Tailwind CSS - 滾動捕捉型別
- Tailwind CSS - 觸控行為
- Tailwind CSS - 使用者選擇
- Tailwind CSS - 將更改
- Tailwind CSS - SVG
- Tailwind CSS - 填充
- Tailwind CSS - 描邊
- Tailwind CSS - 描邊寬度
- Tailwind CSS - 可訪問性
- Tailwind CSS - 螢幕閱讀器
- Tailwind CSS - 強制顏色調整
- Tailwind CSS - 附加
- Tailwind CSS - 與預處理器一起使用
- Tailwind CSS - 生產最佳化
- Tailwind CSS - 參考
- Tailwind CSS - 核心概念
- Tailwind CSS - 自定義
- Tailwind CSS - 佈局
- Tailwind CSS - Flexbox 和 Grid
- Tailwind CSS - 間距
- Tailwind CSS - 大小
- Tailwind CSS - 排版
- Tailwind CSS - 背景
- Tailwind CSS - 邊框
- Tailwind CSS - 效果
- Tailwind CSS - 濾鏡
- Tailwind CSS - 表格
- Tailwind CSS - 過渡和動畫
- Tailwind CSS - 變換
- Tailwind CSS - 互動性
- Tailwind CSS - 資源
- Tailwind CSS - 討論
- Tailwind CSS - 有用資源
Tailwind CSS - 滾動溢位行為
Tailwind CSS 滾動溢位行為是一個實用程式類,它告訴我們當元素到達其滾動區域的邊界時瀏覽器的行為。
Tailwind CSS 滾動溢位行為類
以下是Tailwind CSS 滾動溢位行為類列表,它提供了一種有效處理元素溢位行為的方法。
類 | CSS 屬性 |
---|---|
overscroll-auto | overscroll-behavior: auto; |
overscroll-contain | overscroll-behavior: contain; |
overscroll-none | overscroll-behavior: none; |
overscroll-y-auto | overscroll-behavior-y: auto; |
overscroll-y-contain | overscroll-behavior-y: contain; |
overscroll-y-none | overscroll-behavior-y: none; |
overscroll-x-auto | overscroll-behavior-x: auto; |
overscroll-x-contain | overscroll-behavior-x: contain; |
overscroll-x-none | overscroll-behavior-x: none; |
Tailwind CSS 滾動溢位行為類的功能
- overscroll-auto: 此類替換 CSS overscroll-behavior: auto; 屬性。此類具有預設行為,允許頁面在達到元素邊界時滾動。
- overscroll-contain: 此類替換 CSS overscroll-behavior: contain; 屬性。此類只允許滾動元素,而不是頁面。
- overscroll-none: 此類替換 CSS overscroll-behavior: none; 屬性。此類防止頁面在達到元素邊界時滾動。
- overscroll-y-auto: 此類替換 CSS overscroll-behavior-y: auto; 屬性。此類允許頁面在達到元素邊界時沿 y 軸滾動。
- overscroll-y-contain: 此類替換 CSS overscroll-behavior-y: contain; 屬性。此類允許沿 y 軸滾動元素,而不是頁面。
- overscroll-y-none: 此類替換 CSS overscroll-behavior-y: none; 屬性。此類防止頁面在達到元素邊界時沿 y 軸滾動。
- overscroll-x-auto: 此類替換 CSS overscroll-behavior-x: auto; 屬性。此類允許頁面在達到元素邊界時沿 x 軸滾動。
- overscroll-x-contain: 此類替換 CSS overscroll-behavior-x: contain; 屬性。此類允許沿 x 軸滾動元素,而不是頁面。
- overscroll-x-none: 此類替換 CSS overscroll-behavior-x: none; 屬性。此類防止頁面在達到元素邊界時沿 x 軸滾動。
Tailwind CSS 滾動溢位行為類示例
以下示例將說明 Tailwind CSS 滾動溢位行為類實用程式。
Tailwind CSS 滾動溢位自動類
以下示例說明了Tailwind CSS 滾動溢位自動類的用法。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll Auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: auto; property. This class has default behavior allow page to scroll when element boundary is reached. In this example when we scroll the primary div, As we used overscroll auto class which will enable parent div to be scrolled when primary div's boundary reached. </p> </div> </body> </html>
Tailwind CSS 滾動溢位包含類
以下示例說明了Tailwind CSS 滾動溢位包含類的用法。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll Contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: contain; property. This class allow to scroll the element only not the page. In this example when we scroll the primary div, As we used overscroll Contain class it will not allow to scroll the parent div to be scrolled when primary div's bounder reached. </p> </div> </body> </html>
Tailwind CSS 滾動溢位無類
以下示例說明了Tailwind CSS 滾動溢位無類的用法。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll None Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This class replaces CSS overscroll-behavior: none; property. This class prevents scrolling of page when elements boundary reached. In this example when we scroll the primary div, As we used overscroll none class it will not allow to scroll the parent div to be scrolled when primary div's bounder reached. </p> </div> </body> </html>
Tailwind CSS 滾動溢位-Y-自動類
以下示例說明了Tailwind CSS 滾動溢位-y-自動類的用法。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: auto; property. This class allow to scroll page on y-axis when element boundary reached. In this example when we scroll the primary div, As we used overscroll-y-auto class it will to scroll the page on y-axis </p> </div> </body> </html>
Tailwind CSS 滾動溢位-Y-包含類
以下示例說明了Tailwind CSS 滾動溢位-y-包含類的用法。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: contain; property. This class allow to scroll the element on y-axis not the page. In this example when we scroll the primary div , As we used overscroll-y-contain class it will not allow the page to scroll. </p> </div> </body> </html>
Tailwind CSS 滾動溢位-Y-無類
以下示例演示瞭如何使用Tailwind CSS Overscroll-y-none 類。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-y-none Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-y-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-y: none; property. This class prevents page scrolling on y-axis when elements boundary reached. In this example when we scroll the primary div, As we used overscroll-y-none class it will not allow the page to scroll. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-auto 類
以下示例演示瞭如何使用Tailwind CSS Overscroll-x-auto 類。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-x-auto Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-auto"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: auto; property. This class allow to scroll page on x-axis when element boundary reached. In this example when we scroll the primary div, As we used overscroll-x-auto class it will allow the page to scroll on x axis. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-Contain 類
以下示例演示瞭如何使用Tailwind CSS Overscroll-x-Contain 類。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-x-Contain Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-contain"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: contain; property. This class allow to scroll the element on x-axis not the page. In this example when we scroll the primary div,As we used overscroll-x-contain class it will not allow the page to scroll on x axis. </p> </div> </body> </html>
Tailwind CSS Overscroll-x-none 類
以下示例演示瞭如何使用Tailwind CSS Overscroll-x-none 類。
<!DOCTYPE html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h1 class=" text-3xl mb-3"> Tailwind CSS Overscroll-X-None Class </h1> <div class="p-4 w-3/4 space-y-3 bg-green-200"> <div class="p-2 w-2/3 h-24 bg-green-400 overflow-y-scroll overscroll-x-none"> Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. </div> <p> This Class replaces CSS overscroll-behavior-x: none; property. This class prevents page scrolling on x-axis when elements boundary reached. In this example when we scroll the primary div, As we used overscroll-x-none class it will not allow the page to scroll on x axis. </p> </div> </body> </html>
廣告