


IE cannot adjust the font size that uses px as the unit_html/css_WEB-ITnose
When we design web pages, we usually use px to define fonts. This will bring about a problem, that is, we cannot use the browser font amplification function, and we found out when browsing some foreign websites The reason why you can use the browser font amplification function is as follows:
1. IE cannot adjust the font size that uses px as the unit;
2. The reason why most foreign websites can adjust it is that they use Em is used as the font unit;
3. Firefox can adjust px and em, but more than 96% of Chinese netizens use IE browser (or IE-based browser).
px pixel (Pixel), a relative length unit, which is relative to the monitor screen resolution.
em is also a relative length unit, relative to the font size of the text within the current object. If the current font size for inline text has not been manually set, it will be relative to the browser's default font size.
I said that there is no difference between em and px. Px can also be adjusted with the page size. . . . .
Is ie9 updated? Or what?,,,,,,,,,
Reply to discussion (solution)
Doesn’t anyone care about this problem?
Bonus points, this is all my points,
You need to open the menu bar first, select View - Text Size in the menu, and you will see the effect
If you adjust it through "View" - "Zoom", it will change. When you adjust it through "View" - "Font Size", the em will change, but the px will not change.
<!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> <title>Document</title> <style type="text/css"> body{ /*font-size:20px;*//*写成这样就不能通过字体大小来调整了*/ font-size:200%;/*这样写的可以调整*/ } </style> </head> <body> <div style="font-size:32px;"> 中华人民共和国(不会变大小) </div> <div style="font-size:2em;"> 中华人民共和国(可以调整大小) </div> <div style="font-size:1.2em;"> 中华人民共和国(可以调整大小) </div> </body></html>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.
