国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問(wèn)答1問(wèn)答10問(wèn)答100問(wèn)答1000問(wèn)答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問(wèn)答文章1 問(wèn)答文章501 問(wèn)答文章1001 問(wèn)答文章1501 問(wèn)答文章2001 問(wèn)答文章2501 問(wèn)答文章3001 問(wèn)答文章3501 問(wèn)答文章4001 問(wèn)答文章4501 問(wèn)答文章5001 問(wèn)答文章5501 問(wèn)答文章6001 問(wèn)答文章6501 問(wèn)答文章7001 問(wèn)答文章7501 問(wèn)答文章8001 問(wèn)答文章8501 問(wèn)答文章9001 問(wèn)答文章9501
當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例

來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 22:13:44
文檔

jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例

jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例:本文實(shí)例講述了jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible
推薦度:
導(dǎo)讀jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例:本文實(shí)例講述了jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible

本文實(shí)例講述了jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果。分享給大家供大家參考,具體如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>www.gxlcms.com jquery品牌列表效果</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel=" rel="external nofollow" stylesheet">
<style>
 *{
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 -moz-box-sizing: border-box;
 }
 body {
 font: 16px/20px "Microsoft yahei,'微軟雅黑'"
 color: #fff;
 }
 ul {
 list-style-type:none;
 }
 a {
 text-decoration: none;
 color: #000;
 }
 ul li {
 float: left;
 text-align: right;
 }
 .clear:before,.clear:after {
 content: "";
 clear: both;
 display: table;
 height: 0;
 overflow: hidden;
 zoom: 1;
 }
 .SubCategoryBox {
 width: 473px;
 margin: 0 auto;
 border: 1px solid;
 }
 .SubCategoryBox ul{
 padding: 5px 10px;
 }
 .SubCategoryBox ul li {
 padding: 5px;
 }
 .SubCategoryBox ul li:nth-child(3n-2) {
 width: 130px;
 }
 .SubCategoryBox ul li:nth-child(3n-1) {
 width: 161px;
 margin-right: 30px;
 }
 .SubCategoryBox ul li:nth-child(3n) {
 width: 130px;
 }
 .showmore {
 text-align: center;
 }
 .showmore a {
 background: #eef;
 color: #CFCFE0;
 }
 .hightlight a,.hightlight i {
 color: red;
 /* font-weight: bold; */
 }
</style>
</head>
<body>
 <div class="SubCategoryBox">
 <ul class="clear" id="bancon">
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >佳能</a><i>(30441)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >索尼</a><i>(30442)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >三星</a><i>(30443)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >尼康</a><i>(30444)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >松下</a><i>(30445)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >卡西歐</a><i>(30446)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >富士</a><i>(30447)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >柯達(dá)</a><i>(30448)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >賓得</a><i>(30449)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >理光</a><i>(30450)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >奧斯巴林</a><i>(30451)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >明基</a><i>(30452)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >愛(ài)國(guó)者</a><i>(30453)</i></li>
 <li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >其他品牌相機(jī)</a><i>(30454)</i></li>
 </ul>
 <div class="showmore" id="showpp">
 <a href=""><span>顯示全部品牌</span></a>
 </div>
 </div>
 <script src="http://cdn.bootcss.com/jquery/2.1.0/jquery.js"></script>
 <script>
 $(function(){
 var $target=$("#bancon li:gt(5):not(:last)");
 $target.hide();
 var $toggleBtn=$("#showpp a");
 $toggleBtn.click(function(){
 if($target.is(":visible")){
 $target.hide();
 $(this).find("span").text("顯示所有品牌");
 $("ul li").removeClass('hightlight')
 }
 else {
 $target.show();
 $(this).find('span').text("精簡(jiǎn)顯示品牌");
 $("ul li").filter(":contains('佳能'),:contains('尼康'),:contains('奧斯巴林')").addClass('hightlight')
 }
 return false; /*阻止a標(biāo)簽的跳轉(zhuǎn)*/
 });
 });
 </script>
</body>
</html>

使用在線HTML/CSS/JavaScript代碼運(yùn)行工具 http://tools.jb51.net/code/HtmlJsRun測(cè)試效果如下:

更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery擴(kuò)展技巧總結(jié)》、《jQuery常用插件及用法總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jquery中Ajax用法總結(jié)》、《jQuery常見(jiàn)經(jīng)典特效匯總》、《jQuery動(dòng)畫(huà)與特效用法總結(jié)》及《jquery選擇器用法總結(jié)》

希望本文所述對(duì)大家jQuery程序設(shè)計(jì)有所幫助。

聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例

jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果示例:本文實(shí)例講述了jQuery實(shí)現(xiàn)常見(jiàn)的隱藏與展示列表效果。分享給大家供大家參考,具體如下: <!DOCTYPE html> <html> <head> <meta charset=utf-8> <meta http-equiv=X-UA-Compatible
推薦度:
標(biāo)簽: 顯示 隱藏 實(shí)現(xiàn)
  • 熱門(mén)焦點(diǎn)

最新推薦

猜你喜歡

熱門(mén)推薦

專題
Top
主站蜘蛛池模板: 国产精品一区二区三区免费 | 国产日韩欧美在线 | 亚洲成a人一区二区三区 | 亚洲三级一区 | 欧美另类图片亚洲偷 | 国产h片在线观看 | 中文字幕久久久久一区 | 国产精品成人一区二区 | 成a人片亚洲日本久久 | 欧美日韩高清完整版在线观看免费 | 国产91精品对白露脸全集观看 | 国内精品伊人久久大香线焦 | 99视频九九精品视频在线观看 | 中文国产成人精品久久一 | 精品亚洲一区二区三区 | 日韩精品123 | 国产精品久久久久久久久久久久 | 在线欧美日韩制服国产 | 插欧美 | 亚洲综合日韩 | 毛片一区二区三区 | 免费国产va在线观看视频 | 久久成人a毛片免费观看网站 | 国产亚洲一欧美一区二区三区 | 欧美日本日韩aⅴ在线视频 欧美日韩91 | 亚洲国产97在线精品一区 | 在线观看日韩视频 | 欧美色综合图区 | 日韩区在线 | 欧美日本在线 | 一区二区成人国产精品 | 国产精品最新 | 国产特级全黄一级毛片不卡 | a毛片在线| 午夜一区二区三区 | 国产欧美日韩综合精品一区二区 | 国产免费全部免费观看 | 欧美日韩中出 | 欧美 韩国 精品 另类 综合 | 欧美一区二区在线免费观看 | 成人精品视频在线观看播放 |