The effects displayed on ie, firefox, and chrome browsers are different, mainly because the width of the spaces in the front is different.
Online information saysDifferent browsers will have different default fonts. Generally, the default fonts of IE are Song fonts, while the default fonts of firefox and chrome are Times New Roman.
Song font is a font with equal width, but Times New Roman is not a font with equal width because the browser default fonts are different.
The display width of the space character is also different in different browsers.
For example, the following code is tested in IE and Chrome respectively
Copy the code