Get the App
SLTechnology News&Howtos  ›  Development  › 

How to write the compatibility between IE7 and letter-spacing attributes under FF

Shulou Source: shulou.com Published: 2022-06-03 08:42:54 09月19日 Update

This article introduces the knowledge about "how to write letter-spacing attribute compatibility under IE7 and FF". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

letter-spacing: controls the spacing of individual characters or text

Under IE7, there must be at least two characters, such as

Password:

This will create a space of equal character size in the middle

② But under FF, the code just now produces a 1em spacing on the right side of each character, that is, there is also a spacing between "code" and ":", only written as

Password:

The desired effect can be achieved, just like the effect produced by 1.

This creates a browser compatibility problem, and the solution is to write code like this

The code is as follows:

Password:

This has produced the same effect in IE 7, 8, 9, FF5, Google, Opera and other browsers!

"How to write IE7 and FF letter-spacing attribute compatibility" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Tags: Characters spacing compatibility code passwords effects properties content that is more browsers knowledge browsing practical identical successful learning and then between the two that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL NVidia Docker Shulou Information