Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that the length of spaces in ie is different from that in firefox

Shulou Source: shulou.com Published: 2022-06-03 08:30:15 11月15日 Update

This article focuses on "how to solve the problem that the length of spaces in ie is not the same as in firefox". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem that the length of spaces in ie is not the same as that in firefox.

Under ie, 4 is a width of Chinese characters. Under firefox, 2 is a width of Chinese characters.

Browsers default to different font problems, fonts are divided into "equal width" and "unequal width" fonts, so the spacing of & nbsp is different between IE and firefox.

Solution:

The code is as follows:

& nbs;

At this point, I believe you have a deeper understanding of "how to solve the problem of different lengths of spaces in ie and in firefox". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Problem space length font content character width Chinese character learning different practical deeper code interest method practicality practicality simple operation method more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Shulou Information Apple MariaDB