How to make spaces have the same width in IE and FF?

How to make spaces have the same width in IE and FF?

body{font-size:12px; font-family:"宋体";}

Write the font size and font in the body to make it unified.

Set font: font-family: Songti, Arial

This is because the default fonts of FF and IE are different.

In FF the default font should be Arial

In IE

font-family: Songti If it is Songti, the width of a space is about the width of a Chinese character "宽"

font-family:Arial If it is Arial, the width of a space is about the width of a character "k"

<<:  Detailed examples of float usage in HTML/CSS

>>:  Usage scenarios and source code analysis of Vue advanced components functional components

Recommend

Pitfall notes of vuex and pinia in vue3

Table of contents introduce Installation and Usag...

About Nginx gzip configuration

The principle of nginx to achieve resource compre...

MySQL optimization solution: enable slow query log

Table of contents Preface Setting up slow query l...

Native JS to achieve image marquee effects

Today I will share with you a picture marquee eff...

User Experience Summary

Nowadays, whether you are working on software or w...

Solution to the horizontal scroll bar in iframe under IE6

The situation is as follows: (PS: The red box repr...

VMware virtual machine installation Linux system graphic tutorial

This article shares the specific steps of VMware ...

How to configure eureka in docker

eureka: 1. Build a JDK image Start the eureka con...

Vue Element front-end application development table list display

1. List query interface effect Before introducing...

An example of how to optimize a project after the Vue project is completed

Table of contents 1. Specify different packaging ...

How to use CSS to write different styles according to sub-elements

The effect we need to achieve: What is needed The...

Simple tutorial on using Navicat For MySQL

recommend: Navicat for MySQL 15 Registration and ...

Drop-down menu and sliding menu design examples

I found a lot of websites that use drop-down or sl...