增加extjs中网格的字体大小

发布于 2024-09-30 17:13:14 字数 236 浏览 2 评论 0原文

如何增加 ext-js 中数据网格的字体大小?

我尝试更改 ext-all.css 和 xtheme-blue.css 中的 font-size 属性,但似乎都不起作用。

例如:

.x-grid3-row td、.x-grid3-summary-row td{ 字体:正常 21px/23px arial、tahoma、helvetica、sans-serif; 为什么

这不起作用?

How do you increase the font size of a datagrid in ext-js?

I have tried changing the font-size property in both ext-all.css and in xtheme-blue.css but neither one seemed to work.

For example:

.x-grid3-row td, .x-grid3-summary-row td{
font:normal 21px/23px arial, tahoma, helvetica, sans-serif;
}

Why isn't this working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒中人 2024-10-07 17:13:14

您是否考虑过更改编辑器/数据网格组件本身的配置,而不是更改 ExtJS 的基本 CSS?

bodyCssClass:'yourclass'
注:另请参阅

Instead of altering the base CSS for ExtJS have you thought about altering the config of the editor/datagrid compontent itself?

bodyCssClass:'yourclass'
nb.see also

抠脚大汉 2024-10-07 17:13:14

您可能需要添加 !important 来强制您的 css 覆盖 extjs 的 css。

You may need to add !important to force your css to override extjs's css.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文