How to hide other attributes in the a tag to show only pictures
Editor to share with you how to hide other attributes in the a tag to show only pictures. I hope you will get something after reading this article. Let's discuss it together.
Often encounter a label has a style, is to show a picture, but there is text in the label, and want to hide the text, in many cases, will think
Text-indent:-9999em
But today, I found that in ie7 and in the default ie mode, the picture will not be displayed, so I checked it on the Internet. Here is a summary:
Where the css in ie7 mode is written as follows:
Text-indent:-9999em
Overflow:hidden
Of course, float:left;// can also float:right.
The above css can already solve this problem.
There are ie mode and speed mode. If you want to open the default speed mode, you only need to add the following sentence:
Extreme speed mode
Compatibility mode
IE mode
After reading this article, I believe you have a certain understanding of "how to hide other attributes in the a tag to show only pictures". If you want to know more about it, welcome to follow the industry information channel, thank you for your reading!