Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to hide other attributes in the a tag to show only pictures

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report