- 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 - 预处理样式 (Preflight)
- Tailwind CSS - 布局
- Tailwind CSS - 宽高比
- Tailwind CSS - 容器
- Tailwind CSS - 列
- Tailwind CSS - 断行后 (Break After)
- Tailwind CSS - 断行前 (Break Before)
- Tailwind CSS - 断行内 (Break Inside)
- Tailwind CSS - 盒装饰断开 (Box Decoration Break)
- Tailwind CSS - 盒尺寸 (Box Sizing)
- Tailwind CSS - 显示 (Display)
- Tailwind CSS - 浮动 (Floats)
- Tailwind CSS - 清除浮动 (Clear)
- Tailwind CSS - 隔离 (Isolation)
- Tailwind CSS - 对象适应 (Object Fit)
- Tailwind CSS - 对象位置 (Object Position)
- Tailwind CSS - 溢出 (Overflow)
- Tailwind CSS - 滚动行为 (Overscroll Behavior)
- Tailwind CSS - 位置 (Position)
- Tailwind CSS - 上/右/下/左 (Top / Right / Bottom / Left)
- Tailwind CSS - 可见性 (Visibility)
- Tailwind CSS - Z 轴索引 (Z-Index)
- Tailwind CSS - Flexbox 和 Grid
- Tailwind CSS - Flex 基准 (Flex Basis)
- Tailwind CSS - Flex 方向 (Flex Direction)
- Tailwind CSS - Flex 换行 (Flex Wrap)
- Tailwind CSS - Flex
- Tailwind CSS - Flex 伸展 (Flex Grow)
- Tailwind CSS - Flex 收缩 (Flex Shrink)
- Tailwind CSS - 顺序 (Order)
- Tailwind CSS - 网格模板列 (Grid Template Columns)
- Tailwind CSS - 网格列起始/结束 (Grid Column Start / End)
- Tailwind CSS - 网格模板行 (Grid Template Rows)
- Tailwind CSS - 网格行起始/结束 (Grid Row Start / End)
- Tailwind CSS - 网格自动流 (Grid Auto Flow)
- Tailwind CSS - 网格自动列 (Grid Auto Columns)
- Tailwind CSS - 网格自动行 (Grid Auto Rows)
- Tailwind CSS - 间隙 (Gap)
- Tailwind CSS - 内容对齐 (Justify Content)
- Tailwind CSS - 项目对齐 (Justify Items)
- Tailwind CSS - 自身对齐 (Justify Self)
- Tailwind CSS - 内容排列 (Align Content)
- Tailwind CSS - 项目排列 (Align Items)
- Tailwind CSS - 自身排列 (Align Self)
- Tailwind CSS - 内容位置 (Place Content)
- Tailwind CSS - 项目位置 (Place Items)
- Tailwind CSS - 自身位置 (Place Self)
- Tailwind CSS - 间距 (Spacing)
- Tailwind CSS - 内边距 (Padding)
- Tailwind CSS - 外边距 (Margin)
- Tailwind CSS - 元素间距 (Space Between)
- Tailwind CSS - 尺寸 (Sizing)
- Tailwind CSS - 宽度 (Width)
- Tailwind CSS - 最小宽度 (Min-Width)
- Tailwind CSS - 最大宽度 (Max-Width)
- Tailwind CSS - 高度 (Height)
- Tailwind CSS - 最小高度 (Min-Height)
- Tailwind CSS - 最大高度 (Max-Height)
- Tailwind CSS - 尺寸 (Size)
- Tailwind CSS - 排版 (Typography)
- Tailwind CSS - 字体家族 (Font Family)
- Tailwind CSS - 字体大小 (Font Size)
- Tailwind CSS - 字体平滑 (Font Smoothing)
- Tailwind CSS - 字体样式 (Font Style)
- Tailwind CSS - 字体粗细 (Font Weight)
- Tailwind CSS - 数字字体变体 (Font Variant Numeric)
- Tailwind CSS - 字间距 (Letter Spacing)
- Tailwind CSS - 行数限制 (Line Clamp)
- Tailwind CSS - 行高 (Line Height)
- Tailwind CSS - 列表样式图片 (List Style Image)
- Tailwind CSS - 列表样式位置 (List Style Position)
- Tailwind CSS - 列表样式类型 (List Style Type)
- Tailwind CSS - 文本对齐 (Text Align)
- Tailwind CSS - 文本颜色 (Text Color)
- Tailwind CSS - 文本装饰 (Text Decoration)
- Tailwind CSS - 文本装饰颜色 (Text Decoration Color)
- Tailwind CSS - 文本装饰样式 (Text Decoration Style)
- Tailwind CSS - 文本装饰粗细 (Text Decoration Thickness)
- Tailwind CSS - 文本下划线偏移 (Text Underline Offset)
- Tailwind CSS - 文本转换 (Text Transform)
- Tailwind CSS - 文本溢出 (Text Overflow)
- Tailwind CSS - 文本换行 (Text Wrap)
- Tailwind CSS - 文本缩进 (Text Indent)
- Tailwind CSS - 垂直对齐 (Vertical Align)
- Tailwind CSS - 空格 (Whitespace)
- Tailwind CSS - 断词 (Word Break)
- Tailwind CSS - 连字符 (Hyphens)
- Tailwind CSS - 内容 (Content)
- Tailwind CSS - 背景 (Backgrounds)
- Tailwind CSS - 背景附件 (Background Attachment)
- Tailwind CSS - 背景裁剪 (Background Clip)
- Tailwind CSS - 背景颜色 (Background Color)
- Tailwind CSS - 背景原点 (Background Origin)
- Tailwind CSS - 背景位置 (Background Position)
- Tailwind CSS - 背景重复 (Background Repeat)
- Tailwind CSS - 背景大小 (Background Size)
- Tailwind CSS - 背景图片 (Background Image)
- Tailwind CSS - 渐变颜色停止点 (Gradient Color Stops)
- Tailwind CSS - 边框 (Borders)
- Tailwind CSS - 边框半径 (Border Radius)
- Tailwind CSS - 边框宽度 (Border Width)
- Tailwind CSS - 边框颜色 (Border Color)
- Tailwind CSS - 边框样式 (Border Style)
- Tailwind CSS - 分隔线宽度 (Divide Width)
- Tailwind CSS - 分隔线颜色 (Divide Color)
- Tailwind CSS - 分隔线样式 (Divide Style)
- Tailwind CSS - 轮廓宽度 (Outline Width)
- Tailwind CSS - 轮廓颜色 (Outline Color)
- Tailwind CSS - 轮廓样式 (Outline Style)
- Tailwind CSS - 轮廓偏移 (Outline Offset)
- Tailwind CSS - 环宽 (Ring Width)
- Tailwind CSS - 环颜色 (Ring Color)
- Tailwind CSS - 环偏移宽度 (Ring Offset Width)
- Tailwind CSS - 环偏移颜色 (Ring Offset Color)
- Tailwind CSS - 效果 (Effects)
- Tailwind CSS - 盒阴影 (Box Shadow)
- Tailwind CSS - 盒阴影颜色 (Box Shadow Color)
- Tailwind CSS - 不透明度 (Opacity)
- Tailwind CSS - 混合模式 (Mix Blend Mode)
- Tailwind CSS - 背景混合模式 (Background Blend Mode)
- Tailwind CSS - 滤镜 (Filters)
- Tailwind CSS - 模糊 (Blur)
- Tailwind CSS - 亮度 (Brightness)
- Tailwind CSS - 对比度 (Contrast)
- Tailwind CSS - 投影 (Drop Shadow)
- Tailwind CSS - 灰度 (Grayscale)
- Tailwind CSS - 色调旋转 (Hue Rotate)
- Tailwind CSS - 反转滤镜 (Invert)
- Tailwind CSS - 饱和度 (Saturate)
- Tailwind CSS - 棕褐色 (Sepia)
- Tailwind CSS - 背景模糊 (Backdrop Blur)
- Tailwind CSS - 背景亮度 (Backdrop Brightness)
- Tailwind CSS - 背景对比度 (Backdrop Contrast)
- Tailwind CSS - 背景灰度 (Backdrop Grayscale)
- Tailwind CSS - 背景色调旋转 (Backdrop Hue Rotate)
- Tailwind CSS - 背景反转 (Backdrop Invert)
- Tailwind CSS - 背景不透明度 (Backdrop Opacity)
- Tailwind CSS - 背景饱和度 (Backdrop Saturate)
- Tailwind CSS - 背景棕褐色 (Backdrop Sepia)
- Tailwind CSS - 表格 (Tables)
- Tailwind CSS - 边框折叠 (Border Collapse)
- Tailwind CSS - 边框间距 (Border Spacing)
- Tailwind CSS - 表格布局 (Table Layout)
- Tailwind CSS - 标题位置 (Caption Side)
- Tailwind CSS - 过渡和动画 (Transitions & Animation)
- Tailwind CSS - 过渡属性 (Transition Property)
- Tailwind CSS - 过渡持续时间 (Transition Duration)
- Tailwind CSS - 过渡时间函数 (Transition Timing Function)
- Tailwind CSS - 过渡延迟 (Transition Delay)
- Tailwind CSS - 动画 (Animation)
- Tailwind CSS - 变换 (Transform)
- Tailwind CSS - 缩放 (Scale)
- Tailwind CSS - 旋转 (Rotate)
- Tailwind CSS - 平移 (Translate)
- Tailwind CSS - 倾斜 (Skew)
- Tailwind CSS - 变换原点 (Transform Origin)
- Tailwind CSS - 交互性 (Interactivity)
- Tailwind CSS - 强调色 (Accent Color)
- Tailwind CSS - 外观 (Appearance)
- Tailwind CSS - 光标 (Cursor)
- Tailwind CSS - 光标颜色 (Caret Color)
- Tailwind CSS - 指针事件 (Pointer Events)
- Tailwind CSS - 可调整大小 (Resize)
- Tailwind CSS - 滚动行为 (Scroll Behavior)
- Tailwind CSS - 滚动边距 (Scroll Margin)
- Tailwind CSS - 滚动填充 (Scroll Padding)
- Tailwind CSS - 滚动捕捉对齐 (Scroll Snap Align)
- Tailwind CSS - 滚动捕捉停止 (Scroll Snap Stop)
- Tailwind CSS - 滚动捕捉类型 (Scroll Snap Type)
- Tailwind CSS - 触摸操作 (Touch Action)
- Tailwind CSS - 用户选择 (User Select)
- Tailwind CSS - 将更改 (Will Change)
- Tailwind CSS - SVG
- Tailwind CSS - 填充 (Fill)
- Tailwind CSS - 描边 (Stroke)
- Tailwind CSS - 描边宽度 (Stroke Width)
- Tailwind CSS - 可访问性 (Accessibility)
- Tailwind CSS - 屏幕阅读器 (Screen Readers)
- Tailwind CSS - 强制颜色调整 (Forced Color Adjust)
- Tailwind CSS - 附加内容 (Bonus)
- Tailwind CSS - 与预处理器一起使用
- Tailwind CSS - 生产环境优化
- Tailwind CSS - 参考
- Tailwind CSS - 核心概念
- Tailwind CSS - 自定义
- Tailwind CSS - 布局
- Tailwind CSS - Flexbox 和 Grid
- Tailwind CSS - 间距 (Spacing)
- Tailwind CSS - 尺寸 (Sizing)
- Tailwind CSS - 排版 (Typography)
- Tailwind CSS - 背景 (Backgrounds)
- Tailwind CSS - 边框 (Borders)
- Tailwind CSS - 效果 (Effects)
- Tailwind CSS - 滤镜 (Filters)
- Tailwind CSS - 表格 (Tables)
- Tailwind CSS - 过渡和动画 (Transitions & Animation)
- Tailwind CSS - 变换 (Transforms)
- Tailwind CSS - 交互性 (Interactivity)
- Tailwind CSS - 资源
- Tailwind CSS - 讨论
- Tailwind CSS - 有用资源
Tailwind CSS - 反转滤镜 (Invert)
Tailwind CSS 反转滤镜 (Invert) 是一个实用程序类,用于将反转滤镜应用于元素。
Tailwind CSS 反转滤镜类
以下是用于有效应用反转滤镜的Tailwind CSS 反转滤镜类的列表。
类名 | CSS 属性 |
---|---|
invert-0 | filter: invert(0); |
invert | filter: invert(100%); |
Tailwind CSS 反转滤镜类的功能
- invert-0: 此类用于从元素中移除反转滤镜。
- invert: 此类用于将反转滤镜应用于元素。
Tailwind CSS 反转滤镜类示例
以下示例将说明 Tailwind CSS 反转滤镜类的不同可见性和实用程序。
示例
<!DOCTYPE html> <html> <head> <script src="https://cdn.tailwindcss.com"></script> </head> <body class="p-4"> <h2 class="text-2xl mb-3 font-bold"> Tailwind CSS Invert Classes </h2> <div class="flex gap-6 flex-wrap"> <div> <h3 class="text-lg font-medium">invert-0</h3> <img class="invert-0 w-28 h-24 object-fit" src= "/javascript/images/javascript.jpg" alt="Image"> </div> <div> <h3 class="text-lg font-medium">invert</h3> <img class="invert w-28 h-24 object-fit" src= "/javascript/images/javascript.jpg" alt="Image"> </div> </div> </body> </html>
广告