富贵资源网 Design By www.hznty.com
本文实例讲述了jquery实现超简洁的TAB选项卡效果代码。分享给大家供大家参考。具体如下:
这是一款超简洁的TAB选项卡,个人觉得有点太简单,简单的有点不习惯,美化修饰一下其实效果更好。实际上应该为点击过的TAB添加一个背景色,区分一下,这样比较好。
先来看看运行效果截图:
在线演示地址如下:
http://demo.jb51.net/js/2015/jquery-easy-tab-cha-menu-codes/
具体代码如下:
<!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>超简洁的TAB选项卡</title> <style> body {font:normal 12px/20px simsun; margin:0 auto; padding:0;} * {margin: 0px; padding: 0px;} h4{font-size:14px;} h5{font-size:12px;} img {border:none;} ul,li{list-style-type:none;} a{text-decoration:none;} a:link{text-decoration:none;} a:hover{text-decoration:underline; color:#ffae00;} .menu li{width:60px; height:30px; text-align:center; line-height:30px; float:left; cursor:pointer;} .menu li:hover, .menu li.on{color:#f00;} .cont{width:180px; height:100px; border:1px solid #666666; clear:both;} </style> <script type="text/javascript" src="/UploadFiles/2021-04-02/jquery-1.6.2.min.js">希望本文所述对大家的jquery程序设计有所帮助。
富贵资源网 Design By www.hznty.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
富贵资源网 Design By www.hznty.com
暂无评论...