更改Mathjax的字体大小 [英] Changing mathjax's font size

查看:384
本文介绍了更改Mathjax的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在页面上使用mathjax,并且我已经读到以下内容:

I am using mathjax on my page, and i have read that this:

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    "HTML-CSS": { scale: 175}
  });
</script>

应该使字体变大.但是,相反,它所做的只是使Mathjax方程的容器更大,但字体保持不变.这是为什么?如何更改字体大小?

Is supposed to make fonts bigger. But instead, all it does, is that it makes the container of mathjax equations bigger, but the fonts stay the same. Why is that? How to change font size?

推荐答案

如果您需要全局调整大小,这就是我通过CSS做到的方式.

Well if you need a global re-size, here's how I did it through CSS.

.MathJax {
font-size: 1.3em;
}

我使用了1.3 em,您可以对其进行更改以更好地满足您的需求.

I used 1.3 em, you can change it to better suit your needs.

这篇关于更改Mathjax的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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