用于控制文本转换的功能类。
The quick brown fox jumped over the lazy dog.
<p class="normal-case ...">The quick brown fox ...</p>The quick brown fox jumped over the lazy dog.
<p class="uppercase ...">The quick brown fox ...</p>The quick brown fox jumped over the lazy dog.
<p class="lowercase ...">The quick brown fox ...</p>The quick brown fox jumped over the lazy dog.
<p class="capitalize ...">The quick brown fox ...</p>要在特定的断点处控制元素的文本转换,可在任何现有的文本转换功能类中添加 {screen}: 前缀。例如,使用 md:uppercase 来应用 uppercase 功能类在中等大小的屏幕和更大的屏幕上。
<p class="capitalize md:uppercase ...">
  The quick brown fox jumped over the lazy dog.
</p>关于 Tailwind 的响应式设计功能的更多信息,请查看响应式设计文档。
默认情况下, 针对 text transformation 功能类,只生成 responsive 变体。
您可以通过修改您的 tailwind.config.js 文件中的 variants 部分中的 textTransform 属性来控制为 text transformation 功能生成哪些变体。
例如,这个配置也将生成 hover and focus 变体:
  // tailwind.config.js
  module.exports = {
    variants: {
      extend: {
        // ...
+       textTransform: ['hover', 'focus'],
      }
    }
  }如果您不打算在您的项目中使用 text transformation 功能,您可以通过在配置文件的 corePlugins 部分将 textTransform property to false in the corePlugins section of your config file:
  // tailwind.config.js
  module.exports = {
    corePlugins: {
      // ...
+     textTransform: false,
    }
  }