Customiz tailwindcss中的最大高度

问题描述

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

解决方法

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

       switch SettingsSections(rawValue: section) {
           case .info:
               let footerCell = tableView.dequeueReusableHeaderFooterView(withIdentifier: SettingsFooterViewController.identifier) as? SettingsFooterViewController
               return footerCell

           default:
               return UIView()
       }
   } ```


```func tableView(_ tableView: UITableView,heightForFooterInSection section: Int) -> CGFloat {
       switch SettingsSections(rawValue: section) {
           case .info:
               return 195.0
           default:
               return CGFloat.leastNormalMagnitude
       }

   } ```