Text Decoration

您所在的位置:网站首页 css下划线设置虚线 Text Decoration

Text Decoration

2024-07-17 12:43| 来源: 网络整理| 查看: 265

排版

Text Decoration

Utilities for controlling the decoration of text.

​Quick referenceClassPropertiesunderlinetext-decoration-line: underline; overlinetext-decoration-line: overline; line-throughtext-decoration-line: line-through; no-underlinetext-decoration-line: none; ​Basic usage ​Setting the text decoration

Control how text is decorated with the underline, no-underline, and line-through utilities.

underline

The quick brown fox jumps over the lazy dog.

overline

The quick brown fox jumps over the lazy dog.

line-through

The quick brown fox jumps over the lazy dog.

no-underline

The quick brown fox jumps over the lazy dog.

The quick brown fox ... The quick brown fox ... The quick brown fox ... The quick brown fox ... ​Applying conditionally ​Hover, focus, and other states

Tailwind lets you conditionally apply utility classes in different states using variant modifiers. For example, use hover:underline to only apply the underline utility on hover.

Try hovering over the text to see the expected behaviour

Link with no underline Link

For a complete list of all available state modifiers, check out the Hover, Focus, & Other States documentation.

​Breakpoints and media queries

You can also use variant modifiers to target media queries like responsive breakpoints, dark mode, prefers-reduced-motion, and more. For example, use md:underline to apply the underline utility at only medium screen sizes and above.

To learn more, check out the documentation on Responsive Design, Dark Mode and other media query modifiers.

Text ColorText Decoration Color

Copyright © 2024 Tailwind Labs Inc.

Trademark Policy

Edit this page on GitHubOn this pageQuick referenceBasic usageSetting the text decorationApplying conditionallyHover, focus, and other statesBreakpoints and media queries

From the creators of Tailwind CSS

Make your ideas look awesome, without relying on a designer.

“This is the survival kit I wish I had when I started building apps.”Derrick Reimer, SavvyCal


【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3