1
錯誤的基線我對input file
HTML5標記有個奇怪的問題。 <input type =「file」/>
文字高於按鈕。它沒有任何CSS屬性。我正在使用Bootstrap前端框架,也許這就是問題所在?我該如何修復它?
謝謝先進!
編輯:
這是我的形式
<form action="/change" enctype="multipart/form-data" method="POST">
<span class="help-block">Username</span>
<input id="checkuser" type="text" name="nuser" value="<%= user.user %>"/>
<i id="usricon" style="margin-left: 8px; margin-right: 5px;" class=""></i>
<small id="usrc" style="padding-bottom: 3px;"></small>
<span class="help-block">Email</span>
<input id="checkmail" type="text" name="nmail" value="<%= user.mail %>"/><i
id="milicon" style="margin-left: 8px; margin-right: 5px;"></i>
<small id="milc" style="padding-bottom: 3px;"></small>
<span class="help-block">Password</span>
<input type="password" id="opass" name="opass" placeholder="Your old password"/>
<i id="pssicon1" style="margin-left: 8px; margin-right: 5px;" class=""></i>
<small id="pssc1" style="padding-bottom: 3px;"></small><br>
<input type="password" id="ps" name="npass" placeholder="Your new password"/>
<i id="pssicon2" style="margin-left: 8px; margin-right: 5px;" class=""></i>
<small id="pssc2" style="padding-bottom: 3px;"></small>
<span class="help-block">Avatar</span>
<img class="img-rounded" style="height: 80px; width 80px"
src="<%= user.path %><%= user.avatar %>">
<input id="avat" type="file" name="navatar" accept="image/*">
<span style="margin-top: 1em" class="help-block">Background</span>
<input type="file" id="back" name="nback" accept="image/*"><br>
<input class="button" type="submit">
</form>
但通常輸入文件看起來不像這樣,它真的很奇怪 – MrMangado
你可以截取你在這裏看到的一個截圖:http://jsfiddle.net/JHTGd/ –
當然,這裏你有http:// i45.tinypic.com/spu92v.png。我有一些與元素相關的JS,但只是檢查de值。我認爲是一個引導問題 – MrMangado