Is it possible to style jqmath - display with another font, on webpages

吃可爱长大的小学妹 提交于 2019-12-25 02:09:49

问题


I previously used mathjax to generate math on a website. It was not possible for me to style mathjax, which made the design awful (website had one font, and mathjax came with another font (stix).

Is JQ Math a good alternative?, and it is possible to style the output from jqmath to match the font that i use on the website?


回答1:


Just use normal CSS to override any rules in jqmath-0.2.0.css after loading that file, e.g.:

math, fmath, .fm-math, fmath mo, .fm-mo, .ma-sans-serif
    { font-family: McLaren, 'Cantora One', sans-serif }

See How to left align elements in a jqmath table and jqMath highlight box like bbox in MathJax/MathJs for more jqMath CSS examples and information.



来源:https://stackoverflow.com/questions/12106035/is-it-possible-to-style-jqmath-display-with-another-font-on-webpages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!