Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (490)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
displaystyle="true" on "mfrace"
How to prevent <mfrac> using compact style?
✍: FYIcenter.com
By default, <mfrac> element is rendered in compact style
with smaller font size and less vertical space.
If you don't want this to happen, you can add the displaystyle="true" attribute explicitly. The example below shows that larger font sizes and more vertical spaces are used on the right hand.
<math><mfrac><mfrac><mfrac><mi>1</mi><mn>2</mn></mfrac>
<mn>3</mn></mfrac><mn>4</mn></mfrac> <mo>=</mo>
<mfrac displaystyle="true"><mfrac><mfrac><mi>1</mi><mn>2</mn></mfrac>
<mn>3</mn></mfrac><mn>4</mn></mfrac></math>
Note that <mfrac displaystyle="true"> may not work on older browsers. In that case, you need to use <mstyle displaystyle="true"><mfrac>. The example below shows that both sides have the same result.
<math><mfrac><mfrac><mfrac><mi>1</mi><mn>2</mn></mfrac>
<mn>3</mn></mfrac><mn>4</mn></mfrac> <mo>=</mo>
<mfrac displaystyle="true"><mfrac><mfrac><mi>1</mi><mn>2</mn></mfrac>
<mn>3</mn></mfrac><mn>4</mn></mfrac></math>
2026-10-24, ∼1853🔥, 0💬
Popular Posts:
How headers and footers are repeated in Microsoft Word? Why I see some headers and footers are repea...
Where to find answers to frequently asked questions on Facebook? I want to know how to know how to u...
How to Login to Microsoft Teams desktop version on my Windows computer? If you have Microsoft Teams ...
How to save a presentation with macros in the PowerPoint Macro-Enabled Presentation (*.pptm) file fo...
How to open firewall for the FTP command-line tool on Windows for data connections in active mode? I...