【问题标题】:Customiz the max-height in tailwindcss在顺风 css 中自定义最大高度
【发布时间】:2020-12-04 02:36:50
【问题描述】:

我是tailwindcss的新手。我尝试自定义max-height属性。配置没有任何问题,但poperty对我的html代码没有影响。

【问题讨论】:

  • 请分享您的代码。

标签: tailwind-css


【解决方案1】:

你能检查下面的代码吗?希望它对你有用。 您需要在tailwind.config.js中添加以下代码。

module.exports = {
    theme: {
      maxHeight: {
        '0': '0',
       '1/4': '25%',
       '1/2': '50%',
       '3/4': '75%',
       'full': '100%',
      }
    }
  }

<div class="max-h-1/4"></div>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-18
    • 1970-01-01
    • 2014-02-27
    • 2020-10-19
    • 1970-01-01
    相关资源
    最近更新 更多