jQuery 更改数据表中的字体系列
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33454016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
change font family in datatable
提问by BzH
I'm a beginner in java,
How can I change the font family of all texts (header, footer and body) in a datatable
?
我是 Java 初学者,如何更改 .java 文件中所有文本(页眉、页脚和正文)的字体系列datatable
?
I found nothing about font family in datatables.jqueryui.css
我在 datatables.jqueryui.css 中没有发现任何关于字体系列的信息
回答by BzH
Thanks to @charlietfl,
感谢@charlietfl,
I use inspect element in the browser and found out the solution is adding font-family
and font-size
to .dataTables_wrapper
in dataTables.jqueryui.css
我使用的检查在浏览器元素,发现该解决方案是增加font-family
和font-size
对.dataTables_wrapper
中dataTables.jqueryui.css
.dataTables_wrapper {
font-family: tahoma;
font-size: 13px;
direction: rtl;
position: relative;
clear: both;
*zoom: 1;
zoom: 1;
}