2

Here's the fiddle and code below:

<form class="form-search">
    <div class="input-append">
        <input type="text" id="search-query" class="search-query" />
        <input type="button" id="search-submit" value="Find" class="btn" />
    </div>
</form>

The button shows up fine in IE or Chrome, but when viewed with FF (ver 15 at least), the button show up a little short. Am I not using the Bootstrap correctly?

enter image description here

4

2 回答 2

2

From the doc, you should use button where you are using input:

<form class="form-search">
    <div class="input-append">
        <input type="text" id="search-query" class="search-query" />
        <button type="button" id="search-submit" class="btn" >Find</button>
    </div>
</form>

http://jsfiddle.net/tk8Dc/7/

于 2013-03-12T20:49:28.477 回答
0

Add height: auto; on the input textarea

Another good trait (just another tip)to use on input is:

box-sizing: border-box;
-webkitbox-sizing: border-box;
-moz-box-sizing: border-box;
于 2013-03-12T20:48:50.053 回答