我想在表单中应用toggle btn,当设备尺寸小于toogle应该出现时,表单将通过切换

时间:2017-04-25 06:28:17

标签: twitter-bootstrap-3

                     搜索                                                                                                                                                                                                                                                                                                       从                                                                                                                                                                                                                                                                              至                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               出发                                                                                                                                                                                                                                                                                          返回                                                                                                                                                                                                                                                                                          Passngers                                                                                                    1                                                   2                                                   3                                                   4                                                   五                                                   6                                                   7                                                   8                                                   9                                                   10                                                   11                                                   12                                                   13                                                   14                                                                                                                                                                                                                                                                                        搜索                                                                                                                                                                                                                                       

1 个答案:

答案 0 :(得分:0)

创建一个表单并从getbootstrap.com编写折叠按钮代码,然后在该按钮上放置一个hidden-md类,这样,按钮就不会出现在大中型设备上。但在小型设备上可见。

现在通过将id应用于表单和按钮来执行切换事件。