怎樣單純用CSS重寫select標(biāo)簽的樣式?主要是下拉菜單的長(zhǎng)寬和選擇時(shí)的顏色,不想拜托JS(PS:JS我還不怎么會(huì)。。)<div?class="onlesson">
????<select>
????????<option>按課程名稱</option>
????????<option>按課程類別</option>
????????<option>按主講師</option>
????</select>
</div>.onlesson{display:?inline-block;width:?153px;height:?82px;line-height:?78px;margin-left:?20px;margin-right:?15px;}
.onlesson?select{
????-webkit-appearance:none;?
????width:?153px;
????height:?42px;
????border:?1px?solid?#3D9DF0;
????font-size:?14px;
????color:?#858585;
????padding-left:?21px;
????background:?url("../img/down.png"?)?no-repeat?90%?center;
????font-family:?"宋體";
}
添加回答
舉報(bào)
0/150
提交
取消