2013-09-27 36 views
-1

我想使用級聯樣式表編輯我的投遞箱。通常它可能,但在我的代碼。我正在使用一個 Jquery基於點擊的幻燈片窗口。在這我不能選擇元素。如何添加樣式到我的下拉框?我張貼代碼。編輯類和嵌套類中的塊元素

<div class="dropdownwrap"> 
     <class="select" select name="district"> 

     <option>Select District</option> 
     <option>abcd</option> 
     <option>acbd</option> 
+0

'.select {// here here}' ? – tymeJV

+5

您的標記無效。 – undefined

+0

jQuery的引入如何改變任何東西?看起來您需要重新瀏覽一些HTML和CSS基礎知識。 – isherwood

回答

1

變化

<class="select" select name="district"> 

通過

<select name="district" class="select" > 

例如:

.select { border:1px red solid; padding:5px 12px; font-size:15px } 
.select option { padding:4px 6px; background:red; color:#fff } 

但是造型的選擇是一個不好的做法,你應該使用一個選擇styliser插件(像http://ivaynberg.github.io/select2/

+0

謝謝保羅。我在樣式表中寫什麼? – user2778859

+0

thanx paul。米嘗試:) – user2778859

+0

感謝很多保羅。 :)插件像魅力一樣工作 – user2778859