Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (476)
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, ∼1830🔥, 0💬
Popular Posts:
I have an Apple iPad Air Model MD788C/A. Is it good? Yes. Apple iPad Air Model MD788C/A is a very go...
What are control codes used in Microsoft Word that can be used in the Find and Replace command? Here...
How to pause file transfer in FileZilla FTP Client? I want to close the computer in the middle of a ...
How to open firewall for the FTP command-line tool on Windows for data connections in active mode? I...
How to change the default Save Path on qBittorrent? By default, qBittorrent uses "Downloads" directo...