1)) dosyasını
.shadow_select {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
transition: border linear 0.2s, box-shadow linear 0.2s;
}
.shadow_select:focus {
border-color: rgba(82, 168, 236, 0.8);
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
outline: 0;
outline: thin dotted \9;
/* IE6-9 */
}
2 bootstrap.css Sonra seçme etiketleri
Bu webkit hariç diğer tüm tarayıcılarda çalışır
<select class="input-small shadow_select">
<option>AAAAA</option>
<option>BBBBB</option>
<option>CCCCC</option>
</select>
için shadow_select sınıfı uygulamak için aşağıdaki satırları ekleyin. webkit wrap için div kullanarak seçin. Ardından, select'teki odak etkinliğini tespit etmek ve CSS shadow sınıfını bu div'e uygulamak için jquery'yi kullanın. Odak olay bir div uygulanamaz olabileceğinden (
Sen css ile değil tarzı seçme kutuları yapabilirsiniz. Sadece inanıyorum webkit tarayıcılarda yapabilirsiniz. –
Burada nasıl yapıldığını görün: http://www.joostrap.com/forms – crafter