html - 将 Bootstrap 样式添加到工作搜索框

标签 html css twitter-bootstrap

我需要更改工作搜索框的样式以匹配主题。

<div class="input-group">
  <input type="text" class="form-control" placeholder="Search">
  <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
    </span>
</div>
<!-- /input-group -->
<div class="search_box">
  <form id="form_search" name="form_search" method="get" action="<?php echo site_url();?>">
    <input type="text" name="s" id="search_top" />
    <input type="button" name="btn1" id="btn_top" value="" />
  </form>
</div>

第一个 div 是我需要的样式,第二个是工作搜索框。

目前分别是这样的: http://gyazo.com/ecd1b696f723879d5512588b1d384017

最佳答案

根据您的要求管理父容器的宽度,但获取搜索栏,如您所示:检查链接的 fiddle :

https://jsfiddle.net/happy2deepak/d4jad6ah/

 <div class="input-group">
    <input type="text" class="form-control input-lg" placeholder="Search">
    <span class="input-group-btn">
        <button type="button" class="btn btn-dark btn-lg">Go!</button>
    </span>
 </div>

关于html - 将 Bootstrap 样式添加到工作搜索框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30733918/

相关文章:

html - 如何垂直对齐 div 顶部的文本?

javascript - 带有页脚和可滚动内容的 iframe

html - 格式化迭代记录以平铺格式排列

html - 更改 HTML 密码字段中显示的符号

javascript - 简单的 Angular ng-repeat 应用程序无法按预期工作

php - 使表格在排序时显示交替的颜色背景

css - z-index 不适用于 CSS 下拉菜单

css - 如何从 Twitter Bootstrap 中删除未使用的样式?

css - Bootstrap 导航上方的 Div

html - 只模糊一个巨大元素的背景