How to change equations color in MathJax
I'm using the following snippet to display equations on my blog
<script src='http://www.mathjax.org/mathjax/MathJax.js' type='text/javascript'>
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/Te开发者_开发技巧X","output/HTML-CSS"],
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
});
</script>
and I would like to change equations color to white because my background is somewhat dark, how can this be done?
Do this:
.MathJax_Display {
color: #FFF !important;
}
It seems to work for me.
Equations should inherit styles from ancestor elements, just like any normal element. You could try something like the following:
<head>
<style>.equation { color: white; }</style>
</head>
<body>
<span class="equation">$ax^2+bx+c$</span>
</body>
精彩评论