Article 8 Bootstrap drop-down menu instance Code, Article 8 bootstrap
Let's talk about my implementation idea: Give div A class "dropdown" and put the drop-down menu in this div to display the bootstrap drop-down menu.
<Div class = "dropdown"> <button class = "btn-default dropdown-toggle" type = "button" id = "dropdownMenu1" data-toggle = "dropdown"> Dropdown <span class = "caret"> </span> </button> <ul class = "dropdown-menu" role = "menu" aria-labelledby = "dropdownMenu1"> <li role = "presentation"> <a role = "menuitem" tabindex = "-1" href = "#"> Regular link </a> </li> <li role =" presentation "class =" disabled "> <a role =" menuitem "tabindex ="-1 "href =" # "> Disabled link </a> </li> <li role = "presentation"> <a role = "menuitem" tabindex = "-1" href = "#"> Another link </a> </li> </ul> </ div>
The above is a full description of the sample code in the eighth Bootstrap drop-down menu provided by Alibaba Cloud. I hope it will be helpful to you. If you have any questions, please leave a message for me, the editor will reply to you in a timely manner. Thank you very much for your support for the help House website!