代码实现:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> * { margin: 0; padding: 0; } li { list-style-type: none; } .tab { width: 978px; margin: 100px auto; } .tab_list { height: 39px; border: 1px solid #ccc; background-color: #f1f1f1; } .tab_list li { float: left; height: 39px; line-height: 39px; padding: 0 20px; text-align: center; cursor: pointer; } .tab_list .current { background-color: #c81623; color: #fff; } .item_info { padding: 20px 0 0 20px; } .item { display: none; } </style> <script src="https://blog-static.cnblogs.com/files/jacklzx/jquery.min.js"></script></head><body> <div > <div > <ul> <li >商品介绍</li> <li>规格与包装</li> <li>售后保障</li> <li>商品评价(50000)</li> <li>手机社区</li> </ul> </div> <div > <div > 商品介绍模块内容 </div> <div > 规格与包装模块内容 </div> <div > 售后保障模块内容 </div> <div > 商品评价(50000)模块内容 </div> <div > 手机社区模块内容 </div> </div> </div> <script> $(function() { $(".tab_list li").click(function() { $(this).addClass("current").siblings().removeClass("current"); var index = $(this).index(); $(".tab_con .item").eq(index).show().siblings().hide(); }); }); </script></body></html>原文转载:http://www.shaoqun.com/a/481352.html
trademanager:https://www.ikjzd.com/w/730
特许金融分析师:https://www.ikjzd.com/w/1396
photobucket:https://www.ikjzd.com/w/132
代码实现:<!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><metaname="viewport"content="width=device-width,initial-scale=1.0">&l
patpat:https://www.ikjzd.com/w/1079.html
cicpa考试:https://www.ikjzd.com/w/1375
无锡灵山大佛门票_灵山大佛景区门票 :http://tour.shaoqun.com/a/55637.html
【红红火火过大年】亳州景区新春活动已为您提前备好~:http://tour.shaoqun.com/a/35413.html
惠州龙门水帘洞漂流好玩吗?:http://tour.shaoqun.com/a/2438.html
No comments:
Post a Comment