caret
UK [ˈkærət] US ['kærət]
n.Caret, complement size; complement symbol
Bootstrap caret style syntax
Function: Display drop-down function
Bootstrap caret style example
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>实例</h2> <p> .caret 类显示了一个下拉的功能: <span class="caret"></span></p> <p> .caret 类在按钮中使用:</p> <div class="btn-group"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Menu <span class="caret"></span></button> <ul class="dropdown-menu" role="menu"> <li><a href="#">一个链接</a></li> <li><a href="#">另一个链接 link</a></li> <li><a href="#">其他功能</a></li> </ul> </div> </div> </body> </html>
Click the "Run instance" button to view the online instance