Bootstrap文件输入按钮不会改变

时间:2014-10-07 07:36:16

标签: html css twitter-bootstrap

我在我的项目中使用以下代码:

<input class="btn btn-default btn-file" type="file" id="file" style="float:left; width: 250px" name='athletes_imageid'  value="" />

但是我的默认按钮仍然位于引导程序之一。有什么方法可以解决这个问题吗?

enter image description here

1 个答案:

答案 0 :(得分:0)

只需将课程添加到<span>

<span class="btn btn-default btn-file">
<input type="file" id="file" style="float:left; width: 250px" name='athletes_imageid'  value="" />
</span>