---
title: "使用mathjax在博客中完美显示数学公式，支持PC，手机浏览器"
author: "矮蛋蛋"
date: "2015-07-22T10:33:57Z"
tags: []
categories: ["Web前端"]
slug: "mathjax-pc"
draft: false
lastmod: "2015-07-22T10:33:57Z"
id: 2229277
url: "https://aidandan.iteye.com/blog/2229277"
---

原文地址：<http://www.cnblogs.com/endsock/p/3160660.html>
在博客园的设置选项里

有页头HTML的框内输入：

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=default"></script>

然后就支持tex，latex输入公式了！

如果不懂tex的朋友也没关系，使用mathtype这个软件，然后选项---剪贴和复制选项里选择“转换为其他文字"，之后选择latex2.09 and later

去掉“在翻译中包括mathtype数据”

 

OK，了，从mathtype中复制到你的blog中看看效果吧，效果如下：

−b±b2−4ac−−−−−−−√2a
c2−d2−−−−−−√3a
 

经过对IE, FIRFOX, CHROME 测试均可以正常显示， 然后使用android手机测试， 自带浏览器，chrome  mobile， UCWEB均可以正常显示！