Label a contains text and images. How to hide text? show only image _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Tag a has a style that shows an image, but the text is written in the label, and you want to hide the text. In ie7 and 360, the image is not displayed in ie mode by default, the following is a good solution for everyone. If you are interested, you can refer to a style that appears in a tag. A picture is displayed, but the tag contains text, in many cases, you may want to hide the text

Text-indent:-9999em;

But today I found that in ie7 and 360 the default ie mode, the picture is not displayed, so I checked it online. The following is a summary:

In ie7 mode, css is written as follows:

The Code is as follows:


Text-indent:-9999em;
Overflow: hidden;
Float: left; // Of course, float: right;


The above css can solve this problem.

There is an ie mode and a high speed mode in 360. If you want to enable the default high speed mode for a webpage, you only need to add the following sentence to it:

The Code is as follows:


High speed mode
Compatibility mode
IE Mode

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.