设置超链接文字的样式

标签定义的超链接

CSS样式中,超链接定义

  1. 设置链接未被访问时的样式a:link{font-size:10px...}
  2. 设置链接在鼠标经过时的样式a:hover{font-size:10px;text-decoration:underline:color:#ff0000}
  3. 设置超链接被激活时的样式a:active{font-size:10px;...}
  4. 设置链接被访问过的样式a:visited{font-size:10px;color:#00ffff;...}

**

当鼠标经过超链接文字时,将文字颜色和字体改变

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>超链接样式</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<style type="text/css">
	td{
		font-size:9pt;
		color:#007766;
	}
	a:link{
		font-size:9pt;
		color:#cccccc;
		font-weight:bold;
		text-decoration:underline;
	}
	a:hover{
	font-size:19pt;
	color:#ff0000;
	font-weight:bold;
	text-decoration:underline;
	}
	a:active{
		font-size:39pt;
		color:#6699ff;
		font-weight:bold;
		text-decoration:underline;
	}
</style>
</head>
<body>
<table align="center">
	<tr>
		<td>明日-><a href="#">明日</a></td>
	<tr>
</table>
</body>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值