BootStrap下拉框在firefox瀏覽器界面不友好的解決方案
http://output.jsbin.com/titaki
以上這個鏈接在firefix瀏覽器打開就會發(fā)現(xiàn)里面有個小容器,而且下拉按鈕樣式很不友好
上谷歌查了一下
1.小容器可以利用select:padding:0
2.下拉圖標可以利用background-image;-moz-appearance:none把下拉框的樣式去掉,然后
@-moz-document url-prefix() {
select.form-control {
-moz-appearance: none;
appearance: none;
background-image: url("../image/buy-other-down.png");
background-repeat: no-repeat;
background-position: calc(100% - 7px) 50%;
background-size: 15% auto;
border-radius:3px;
padding:0;
}
}
ps:那個小容器是可以用padding:0去掉 但是這樣的話select就沒有padding-left,界面也不友好;不知道怎么解決這個小容器的問題,還需要再摸索中,有好的見解歡迎提出,謝謝!
相關文章
javascript 字符 Escape,encodeURI,encodeURIComponent
下面是對字符串編碼轉換功能函數(shù)大家,大家可以根據(jù)實際需要選擇使用。2009-07-07
20分鐘輕松創(chuàng)建自己的Bootstrap站點
這篇文章主要教大家如何在短短的20分鐘內(nèi)輕松創(chuàng)建自己的Bootstrap站點,學會使用twitter bootstrap建立一個站點,從而鞏固Bootstrap一系列基礎知識,感興趣的小伙伴們可以參考一下2016-05-05
Perl Substr()函數(shù)及函數(shù)的應用
這篇文章主要介紹了Perl Substr()函數(shù)及函數(shù)的應用,需要的朋友可以參考下2015-12-12

