调整制表器行高

编程入门 行业动态 更新时间:2024-10-09 12:30:38
本文介绍了调整制表器行高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

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屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 10:44:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1408627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器行高

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!