这是我的代码:http://www.bootply.com/iR1SvOyEGH
<form>
<div class="form-group">
<label for="inputEmail">Company Name</label>
<input type="text" class="form-control">
<span class="input-group-addon">.test.com</span>
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
<button type="submit" class="btn btn-primary">Update</button>
</form>
我的理解是,input-group-addon应该与输入框同行并位于右侧,但它实际上出现在输入框下方,占据了100%的宽度。
请问有谁能告诉我出了什么问题吗?