Home > Web Front-end > HTML Tutorial > How to hide other attributes in a tag and only display pictures

How to hide other attributes in a tag and only display pictures

php中世界最好的语言
Release: 2018-02-09 10:17:16
Original
3790 people have browsed it

This time I will show you how to hide other attributes in the a tag Only display pictures, and how to hide other attributes in the a tag and only display picturesNotesWhat are they? The following is a practical case. Let’s take a look.

I often encounter that the label has a style that displays a picture, but there is text in the label, and I want the text to be hidden. In many cases, I will think of

text-indent:-9999em;

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

The css in ie7 mode is written as follows:

text-indent: -9999em;    
overflow: hidden;  
float: left;     //当然也可以float: right;
Copy after login

The above css can already solve this problem.

360 has IE mode and extreme speed mode. If you want the default extreme speed mode when opening a web page, you only need to add the following sentence to :

<meta name="renderer" content="webkit">             极速模式  
<meta name="renderer" content="ie-comp">            兼容模式  
<meta name="renderer" content="ie-stand">           IE模式
Copy after login

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

How to make the textarea text area width and height width and height automatically adapt

##html+css+ How to implement list circular scrolling in javascript

The click event of html hyperlink a jumps to the address pointed to by href

How to display and hide HTML elements through display or visibility

The above is the detailed content of How to hide other attributes in a tag and only display pictures. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template