bootstrap 搜索框 常用样式

2019-07-05 10:40:43 浏览数 (1)

image.png

<nav class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="#">菜鸟教程</a> </div> <form class="navbar-form navbar-left" role="search"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search"> </div> <button type="submit" class="btn btn-default">提交</button> </form> </div> </nav>

//navbar-text添加文本 <div> <p class="navbar-text">Runoob 用户登录</p> </div>

0 人点赞