BootStrap樹狀圖顯示功能
更新時間:2016年11月24日 14:07:52 作者:半塊菠蘿
本文是小編根據(jù)bootstrap的折疊設(shè)計的樹狀圖顯示效果,只有二級顯示,可以用在簡單的目錄等。對實現(xiàn)代碼感興趣的朋友可以參考下本文
這是我根據(jù)bootstrap的折疊設(shè)計的樹狀圖顯示,只有二級顯示,可以用在簡單的目錄等
右端可以再次修改,顯示為滑動塊

- 引用部分
<meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - 騰實信績效管理系統(tǒng)</title> <link rel="stylesheet" type="text/css" href="~/Content/bootstrap.min.css" />
HTML代碼
<div class=" alert alert-info" style=" width:450px;height:35px;padding-top:0px;padding-left:0;margin-bottom:0;margin-top:10px"> <button type="button" class=" btn btn-link" data-toggle="collapse" data-target="#demo1"><span class=" glyphicon glyphicon-plus"></span></button> <span>這是一級標(biāo)題</span> <input type="checkbox" name=" pageid" value=""style=" float:right; margin-top:10px"> </div> <div id="demo1" class="collapse in" style=" margin-left:40px;margin-bottom:10px;margin-top:0px"> <div class=" alert alert-info" style=" margin-top:10px; width:410px; height:35px; padding-top:7px; padding-left:15px; margin-bottom:0"> <span>這是二級標(biāo)題</span> <input type="checkbox" name=" pageid" value="" style=" float:right;"> </div> <div class=" alert alert-info" style=" margin-top:10px; width:410px; height:35px; padding-top:7px; padding-left:15px; margin-bottom:0"> <span>這是二級標(biāo)題</span> <input type="checkbox" name=" pageid" value="" style=" float:right;"> </div> <div class=" alert alert-info" style=" margin-top:10px; width:410px; height:35px; padding-top:7px; padding-left:15px; margin-bottom:0"> <span>這是二級標(biāo)題</span> <input type="checkbox" name=" pageid" value="" style=" float:right;"> </div> <div class=" alert alert-info" style=" margin-top:10px; width:410px; height:35px; padding-top:7px; padding-left:15px; margin-bottom:0"> <span>這是二級標(biāo)題</span> <input type="checkbox" name=" pageid" value="" style=" float:right;"> </div> </div>
以上所述是小編給大家介紹的BootStrap樹狀圖顯示功能,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
相關(guān)文章
jQuery HTML設(shè)置內(nèi)容和屬性操作實例分析
這篇文章主要介紹了jQuery HTML設(shè)置內(nèi)容和屬性操作,結(jié)合實例形式分析了jQuery HTML設(shè)置內(nèi)容和屬性相關(guān)函數(shù)與操作注意事項,需要的朋友可以參考下2020-05-05
JQuery SELECT單選模擬jQuery.select.js
本文件是跟據(jù) zhangjingwei 的Jquery Select(單選) 模擬插件 V1.3.4 修改而來的,需要的朋友可以參考下。2009-11-11
jQuery的animate函數(shù)實現(xiàn)圖文切換動畫效果
animate()在jquery中作為一個方法,可用于創(chuàng)建動畫效果,jquery中的animate()方法讓那個頁面增加了很好的視覺效果2015-05-05
Jquery.TreeView結(jié)合ASP.Net和數(shù)據(jù)庫生成菜單導(dǎo)航條
在網(wǎng)上瀏覽了許多關(guān)于利用Jquery.TreeView插件生成樹的例子!但是大多數(shù)都沒有結(jié)合數(shù)據(jù)庫來生成樹,很難運用到實際項目中!2010-08-08

