码迷,mamicode.com
首页 > Web开发 > 详细

html 基础 超链接

时间:2016-07-14 13:15:46      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

 

***设置超链接的样式示例 

a:link 超链接被点前状态

a:visited 超链接点击后状态

a:hover 悬停在超链接时

a:active 点击超链接时

在定义这些状态时,有一个顺序l v h a

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
a:link
{
color:#000;
text-decoration:none;}
a:visited
{
color:#000;
text-decoration:none;}
a:hover
{
color:#F00;
text-decoration:underline;}
a:active
{
color:#F90;
text-decoration:underline;}
</style>
<link href="Untitled-1.css" rel="stylesheet" type="text/css" />
</head>

<body>
<a href="http://www.baidu.com/">百度一下</a>
</body>
</html>

html 基础 超链接

标签:

原文地址:http://www.cnblogs.com/kun-boke/p/5669946.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!