时间:2021-07-01 10:21:17 帮助过:8人阅读
代码如下:
- 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;
- }
这样定义样式表就可以实现你的功能了,不会样式表的话,可以把下面的代码加到你的页面中<head></head>标签里:
- <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>
相信看了这些案例你已经掌握了方法,更多精彩请关注Gxl网其它相关文章!
相关阅读:
怎样实现手机自适应网页的大小
如何使用HTML的title属性
如何实现textarea的文本转为html即回车换行
以上就是怎样操作a标签的默认样式的详细内容,更多请关注Gxl网其它相关文章!