html中 a标签问题!

来源:百度知道 编辑:UC知道 时间:2024/07/04 23:31:44
怎样使其他的标签可以达到a标签的效果?
举个例看下
谢谢了!

用控制a标签的css控制也是可以控制一些的,但兼容不怎么好,在火狐里兼容,IE7兼容部分,IE6兼容一点点..例

<!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=gb2312" />
<title>无标题文档</title>
<style type="text/css">
.spanClass{ cursor:pointer}
.spanClass:link{ color:#000;}
.spanClass:visited{ color:#0f0;}
.spanClass:hover{ color:#f00; text-decoration:underline}
.spanClass:active{ color:#00f;}
</style>
</head>

<body>
<span class="spanClass" onclick=&