<select> <option>Here is the first option</option> <option>The second option</option> </select>
一個選擇框的某些部分我們是可以美化的,比如字體、邊框、顏色、內邊距和背景顏色: Here is the first option The second option 但是煩人的下拉箭頭還是保持不變。沒有直接美化它的方式,但解決方案還是非常簡單的,首先我們需要用一個div容器包裹在select元素外圍:
復制代碼
代碼如下:
<div class="styled-select"> <select> <option>Here is the first option</option> <option>The second option</option> </select> </div>