Home >Web Front-end >HTML Tutorial >How to operate the default style of a tag

How to operate the default style of a tag

php中世界最好的语言
php中世界最好的语言Original
2018-02-06 09:51:125243browse

This time I will show you how to operate the default style of the a tag, and what are the precautions for operating the default style of the a tag. The following is a practical case, let's take a look.

The code is as follows:

a:link { 
font-size: 12px; 
color: #000000; 
text-decoration: none; 
} 
a:visited { 
font-size: 12px; 
color: #000000; 
text-decoration: none; 
} 
a:hover { 
font-size: 12px; 
color: #999999; 
text-decoration: underline; 
}

You can implement your function by defining the style sheet in this way. If you don’t know the style sheet, you can add the following code to your page93f0f5c25f18dab9d176bd4f6de5d30e< ;/head> In the tag:


<style type="text/css"> 
<!-- 
a:link { 
font-size: 12px; 
color: #000000; 
text-decoration: none; 
} 
a:visited { 
font-size: 12px; 
color: #000000; 
text-decoration: none; 
} 
a:hover { 
font-size: 12px; 
color: #999999; 
text-decoration: underline; 
} 
--> 
</style>

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

Related reading:

How to realize the size of mobile adaptive web pages

How to use the title attribute of HTML

How to convert textarea text into html that is carriage return and line feed

The above is the detailed content of How to operate the default style of a tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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