1
我似乎無法弄清楚爲什麼我的搜索按鈕跳轉到第二行。據我所知,我只把它設置爲一行(45px)厚,而忽略了這一點。請幫助?我的搜索欄顯示奇怪
http://www.bootply.com/EwP07rHc52
忘了補充我使用的積極改變按鈕外觀的腳本。
$(document).ready(function(){
// select element styling
$('select.select').each(function(){
var title = $(this).attr('title');
if($('option:selected', this).val() != '' ) title = $('option:selected',this).text();
$(this)
.css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
.after('<span class="select">' + title + '</span>')
.change(function(){
val = $('option:selected',this).val();
$(this).next().text(val);
})
});
});
有趣的是,這種向下移動文本輸入框,並從左側選項框上移一行 – user3689303
其實,我沒有看到,除了右側的按鈕任何差異的,當然。也許你在談論當輸入框具有焦點時顯示的輪廓? – Shomz
不,當我從Chrome瀏覽器的記事本++中運行它時,它們仍然有不同的行,選項框是另一行上方的行。 – user3689303