首页 > Web开发 > 详细

纯CSS实现双击链接跳转功能

时间:2015-05-27 15:47:00      阅读:425      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html >
<html>
<head>
<title>双击打开链接</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style type="text/css">
.test3 span {
position: relative;
}
.test3 span a { 
position: relative;
z-index: 2; 
}
.test3 span a:hover, .test3 span a:active { 
z-index: 4; 
}
.test3 span input { 
background: transparent; 
border: 0; 
cursor: pointer; 
position: absolute; 
top: -1px; 
left: 0; 
width: 101%;
height: 301%;
z-index: 3; 
}
.test3 span input:focus { 
background: transparent; 
border: 0; 
z-index: 1; 
}
</style>
</head>
<body>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
<div class="test3">
<span><input type="text" value="&nbsp;" readonly="true" />
<a href="http://www.baidu.com">双击我</a></span>
</div>
</body>
<html>

纯CSS实现双击链接跳转功能

原文:http://blog.csdn.net/life66881/article/details/46047287

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!