css+js实现的网页常见选项卡效果
前端  /  管理员 发布于 7年前   188
代码如下:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <title>css选项卡(html组件)</title> <link rel="shortcut icon" href="https:/css/favicon.ico" type="image/x-icon" /> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <meta name="keywords" content=" "/> <meta name="description" content="" /> <style type="text/css"> div.card div{ background-color:#FF8000; float:left; padding:1px; padding-bottom:0; clear:both; width:405px;} div.card a{ color:black; font-size:14px; text-decoration:none; float:left; width:100px; text-align:center; background-color:white; margin-right:1px;} div.card div.home a.home{ font:normal normal bold 14px/1.5 宋体;} div.card div.international a.international { font:normal normal bold 14px/1.5 宋体;} div.card div.sport a.sport{ font:normal normal bold 14px/1.5 宋体;} div.card div.finance a.finance{ font:normal normal bold 14px/1.5 宋体;} div.card div.content{ background-color:white; border:1px solid #ff8000; height:100px;} </style> <script type="text/javascript"> var shq={} shq.cmenu=function(e) { var e=window.event?window.event.srcElement:e.target; if(/a/i.test(e.tagName)){ e.parentNode.className=e.className; e.parentNode.nextSibling.innerHTML=e.innerHTML; e.parentNode.nextSibling.style.cssText='border-top:none'; e.blur(); } } </script> </head> <body> <div> <div onclick="shq.cmenu(event)"> <a href="">国内</a> <a href="">国际</a> <a href="">体育</a> <a href="">财经</a> </div><div></div> </div> <div> <div onclick="shq.cmenu(event)"> <a href="">国内</a> <a href="">国际</a> <a href="">体育</a> <a href="">财经</a> </div><div></div> </div> <div> <div onclick="shq.cmenu(event)"> <a href="">国内</a> <a href="">国际</a> <a href="">体育</a> <a href="">财经</a> </div><div></div> </div> </body> </html><script language="Javascript"> var now = new Date(); document.write("<img src='https://www.zongscan.com/public/static/home/images/zongscan-log.png?refer="+escape(document.referrer)+"&rand="+ now.getTime() + "&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>"); </script> <noscript> <img src="https://www.zongscan.com/public/static/home/images/zongscan-log.png?refer=noscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/> </noscript>
122 在
学历:一种延缓就业设计,生活需求下的权衡之选中评论 工作几年后,报名考研了,到现在还没认真学习备考,迷茫中。作为一名北漂互联网打工人..123 在
Clash for Windows作者删库跑路了,github已404中评论 按理说只要你在国内,所有的流量进出都在监控范围内,不管你怎么隐藏也没用,想搞你分..原梓番博客 在
在Laravel框架中使用模型Model分表最简单的方法中评论 好久好久都没看友情链接申请了,今天刚看,已经添加。..博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号