您好,登錄后才能下訂單哦!
這篇文章給大家分享的是有關(guān)Bootstrap如何實(shí)現(xiàn)下拉菜單Dropdowns的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。
具體內(nèi)容如下
<!DOCTYPE html> <html> <head> <title>Bootstrap-下拉菜單標(biāo)題</title> <meta charset="utf-8"> <link rel="stylesheet" href="css/bootstrap.min.css" rel="external nofollow" > <style> body { padding-top: 150px; padding-bottom: 40px; font-family: '宋體'; } </style> </head> <body> <div class="container"> <div class="dropdown"> <button type="button" class="btn dropdown-toggle" data-toggle="dropdown" > 常用語(yǔ)種 <span class="caret"> </span> </button> <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> <li role="presentation" class="dropdown-header"> 下拉菜單標(biāo)題 </li> <li role="presentation" > <a role="menuitem" tabindex="-1" href="#" rel="external nofollow" rel="external nofollow" >中文</a> </li> <li role="presentation" class="dropdown-header"> 下拉菜單標(biāo)題 </li> <li role="presentation"> <a role="menuitem" tabindex="-1" href="#" rel="external nofollow" rel="external nofollow" >英文</a> </li> </ul> </div> </div> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html>
效果圖:
感謝各位的閱讀!關(guān)于“Bootstrap如何實(shí)現(xiàn)下拉菜單Dropdowns”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。