How to hide the text in the a tag and display the image? Compatible with 360 mode rendering

How to hide the text in the a tag and display the image? Compatible with 360 mode rendering
Often you will encounter a style of <a> tag that displays an image, but there is text in the tag and you want to hide the text. In many cases, you will think of

text-indent:-9999em;

But today I found that the pictures are not displayed in IE7 and 360 default IE mode, so I checked it online and summarized it below:

The css writing method in ie7 mode is as follows:

Copy code
The code is as follows:

text-indent: -9999em;
overflow: hidden;
float: left; //Of course you can also float: right;

The above css can already solve this problem.

360 has an IE mode and a speed mode. If you want to open a web page in the default speed mode, just add the following sentence in <head>:

Copy code
The code is as follows:

<meta name="renderer" content="webkit"> Speed ​​mode
<meta name="renderer" content="ie-comp"> Compatibility mode
<meta name="renderer" content="ie-stand"> IE mode

<<:  Example code for changing the style of other tags by hovering the mouse using CSS

>>:  Vue makes a simple random roll call

Recommend

The main differences between MySQL 4.1/5.0/5.1/5.5/5.6

Some command differences between versions: show i...

How to use mysql index merge

Index merging is an intelligent algorithm provide...

Detailed explanation of the wonderful CSS attribute MASK

This article will introduce a very interesting at...

How to optimize a website to increase access speed update

Recently, the company has begun to evaluate all s...

Implementation of Bootstrap web page layout grid

Table of contents 1. How the Bootstrap grid syste...

Using JavaScript difference to implement a comparison tool

Preface At work, I need to count the materials su...

Web lesson plans, lesson plans for beginners

Teaching Topics Web page Applicable grade Second ...

How to detect whether a file is damaged using Apache Tika

Apache Tika is a library for file type detection ...

8 ways to manually and automatically backup your MySQL database

As a popular open source database management syst...

HTML+CSS div solution when relative width and absolute width conflict

Div solution when relative width and absolute wid...

A simple example of mysql searching for data within N kilometers

According to the coefficient of pi and the radius...

How to modify the root password of mysql under Linux

Preface The service has been deployed on MySQL fo...

CSS3 filter code to achieve gray or black mode on web pages

front end css3,filter can not only achieve the gr...