Home > Article > Web Front-end > How to operate the default style of a tag
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!