0

我正在尝试显示以下行:

<div id="theDiv">
Well, here is the function we have been talking of $$y = ln(e|^[| sin(|x|) |] |)$$ so thats the beauty.
</div>

由于这个 div 的内容是动态加载的,我应用 M.parseMath(theDiv);

它工作正常,但函数 $$y = ln(e|^[| sin(|x|) |] |)$$ 正在自己的新行中显示。

Well, here is the function we have been talking of 
$$y = ln(e|^[| sin(|x|) |] |)$$ (See this is on a line of its own!)
so thats the beauty.

为什么是新线 - 如何避免这种情况?

4

2 回答 2

2

在你的数学周围使用 $ 而不是 $$。请参阅http://mathscribe.com/author/jqmath.html

于 2016-04-18T19:09:29.507 回答
1

Dave 的意思是像这样使用 $ 包装器:

<div id="theDiv">
Well, here is the function we have been talking of $y = ln(e|^[| sin(|x|) |] |)$ so thats the beauty.
</div>
于 2016-05-31T19:03:08.423 回答