【发布时间】:2012-10-04 20:28:08
【问题描述】:
我想在这样的网页上呈现两个数字:
123
+ 456
______
我找到了这个例子:
<mstack>
<mn>496</mn>
<msrow> <mo>+</mo> <none/> <mn>28</mn> </msrow>
<msline/>
</mstack>
但是MathJax doesn't support mstack, msrow and msline elements.我尝试使用mtable
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mtable id="test" columnalign="right">
<mtr><mtd></mtd><mtd><mn>12321</mn></mtd></mtr>
<mtr><mtd><mo>+</mo></mtd><mtd><mn>45665445</mn></mtd></mtr>
</mtable>
</math>
</body>
使用这个 CSS:
<style type="text/css">
#test
{
border-bottom:1px solid black;
}
</style>
但底部边框与较低的数字重叠。有没有办法使用 MathJax/MathML 实现这种布局?
【问题讨论】: