2014-10-07 24 views
0

我使用下面的代碼在我的項目:引導文件輸入按鈕不會改變

<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

http://www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3/ – Morpheus 2014-10-07 08:47:49

+0

請不要使用「bootstrap」標籤,使用「twitter-bootstrap」,因爲它意味着別的東西 – 2014-10-12 10:52:22

回答

0

只要把類<span>一樣,

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

同樣的東西,我害怕 – LazyPeon 2014-10-07 07:42:47