调整制表器行高 [英] Adjust tabulator row height

查看:28
本文介绍了调整制表器行高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试调整制表符表格上的表格行高.我正在尝试使行更高,以便与触摸屏设备上的用户进行交互.

I'm trying to adjust the table row height on a tabulator table. I'm trying to make the rows taller to make it easier to interact with for users on touchscreen devices.

我在文档中没有找到任何内容,我也没有成功调整 css.使行更高的正确方法是什么?我正在尝试使用 Apple 的最低 44 像素建议.

I'm not finding anything in the documentation, and I haven't been successful adjusting the css. What is the proper way to make the rows taller? I'm trying to use Apple's suggestion of a 44px minimum.

推荐答案

您可以在 CSS 中通过调整单元格内边距来实现,默认为 4px

You can do this in CSS by adjusting the cell padding, which by default is 4px

.tabulator-row .tabulator-cell{
    padding:8px 4px;
}

确保在制表器样式表之后包含此内容

Make sure to include this after the tabulator stylesheet

这篇关于调整制表器行高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆