本文实例为大家分享了js仿京东轮播效果的具体代码,实现选项卡套用选项卡,供大家参考,具体内容如下
效果图:
代码:
无标题文档 *{margin:0;padding:0;} ul{list-style:none;}img{border:0;} #tab{width:1000px;height:500px;margin:50px auto;} #tab .title {width:200px;height:500px;display:inline-block;} #tab .title li {width:200px;height:125px;float:left;line-height:125px;text-align:center;font-size:30px;background:#f1f1f1;border-bottom:1px dotted #000;} #tab .title li.active {background:#fff;} #tab .title li:hover{background:#fff;} #tab .content {width:799px;height:500px;float:right;display:inline-block;position:relative;border:none;border:none;} #tab .content img{position:absolute;top:0;left:0;width:799px;height:500px;} #tab .content ul {position:absolute;width:799px;height:45px;bottom:0;left:0;filter(alpha:80);opacity:0.8;background:#000;} #tab .content ul li {float:left;height:45px;line-height:45px;background:#d5d5d5;border-right:1px solid #fff;cursor:pointer;text-align:center;} #tab .content ul li.active {background:red;} #tab .content ul li:hover{background:red;}
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。



