Home > Web Front-end > JS Tutorial > body text

How to style search box in Bootstrap3

高洛峰
Release: 2016-12-29 11:36:19
Original
1671 people have browsed it

Many styles in Bootstrap3 require us to learn by trial and error. When making a plain search box similar to Baidu, we may not know how to do it at first. In fact, it is very simple and can be achieved by using inline icons

<div class="input-group">
<input type="text" class="form-control input-lg"><span class="input-group-addon btn btn-primary">搜索</span>
</div>
Copy after login

Inline the span into the input box through '.input-group'. We only need to add the button style to this span to achieve a very good search box.

The above is the entire description of the method of making a search box style with Bootstrap3 introduced by the editor. I hope it will be helpful to you. If you want to know more, please pay attention to the PHP Chinese website !

For more related articles on how to create a search box style using Bootstrap3, please pay attention to the PHP Chinese website!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!