如何解决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
}
} ```
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。