优茬娱乐网
您的当前位置:首页bootstrap中搜索框怎么做

bootstrap中搜索框怎么做

来源:优茬娱乐网


在项目开发过程中,我们或多或少都会使用到搜索选项,那么如何制作一个标准,好看的搜索框呢?这里推荐bootstrap自带的一个控件input-group。

先简单看下对于这个控件官方的说明

Input group
Easily extend form controls by adding text, buttons, or button groups on either side of textual <input>s.
Contents
 Basic example
 Sizing
 Checkboxes and radio addons
 Button addons
 Buttons with dropdowns
 Segmented buttons
 Accessibility

意思就是针对我们平常使用的表单提交功能,可以添加按钮,文本到输入栏的两边的位置。

显示全文