How to left align elements in a jqmath table

前端 未结 1 346
粉色の甜心
粉色の甜心 2021-01-20 11:32

If I try to create a table in jqmath, it always centers the elements. So if I write

$$\\table a , b ; c , ffffdffffdffffdffffd ;$$

then I get

相关标签:
1条回答
  • 2021-01-20 11:40

    All you need to do is style the appropriate tags.

    <style type="text/css">
    mtd, .fm-mtd  {
        text-align:left;
    }
    </style>
    

    This is demonstrated in the following fiddle.

    To find out more about how to style code generated by jqMath, just look at their CSS style sheet.

    jqMath behaves differently on differing browsers. By default, Chrome displays the text using left alignment, whereas Firefox displays the text using center alignment. Chrome uses <td class="fm-mtd"> while Firefox uses <mtd>. The tag used depends upon whether the web browser supports MathML.

    To learn more about text-align, visit the Mozilla Developer Network.

    0 讨论(0)
提交回复
热议问题