There are text and pictures in the a tag. How to hide the text and only show the picture?

There are text and pictures in the a tag. How to hide the text and only show the picture?

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

<<:  Vue implements simple notepad function

>>:  How to adapt CSS to iPhone full screen

Recommend

Nginx/Httpd reverse proxy tomcat configuration tutorial

In the previous blog, we learned about the usage ...

Basic tutorial on using explain statement in MySQL

Table of contents 1. Overview 1. Explain statemen...

W3C Tutorial (9): W3C XPath Activities

XPath is a language for selecting parts of XML do...

A brief discussion on the principle of Vue's two-way event binding v-model

Table of contents explain: Summarize Replenish Un...

Detailed explanation of adding dotted lines to Vue element tree controls

Table of contents 1. Achieve results 2. Implement...

Problems and solutions when installing and using VMware

The virtual machine is in use or cannot be connec...

Detailed explanation of downloading, installing and using nginx server

download http://nginx.org/en/download.html Unzip ...

Implementation steps of vue-element-admin to build a backend management system

Recently, when I was working on a conference heal...

How to configure MGR single master and multiple slaves in MySQL 8.0.15

1. Introduction MySQL Group Replication (MGR for ...

How to query and update the same table in MySQL database at the same time

In ordinary projects, I often encounter this prob...

What we have to say about CSS absolute and relative

Written in the opening: Absolute said: "Rela...