本文介紹了CSS 選擇器的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
選擇按鈕效果很好:
input[type="submit"]
{
background:#efefef;
width:auto;
padding:5px;
color:#666;
font-size:16px;
font-weight:bold;
padding:5px 15px;
}
但我似乎無法為下拉框找到任何東西,這不起作用:
But I can't seem to get anything to work for drop down boxes, this doesn't work:
input[type="select"]
{
background:#000;
}
我選對了嗎?你可以這樣做嗎?
Am I selecting it correctly? Can you do it this way?
推薦答案
試試這個:
select {
background:#000;
}
據我所知,沒有 <input type="select"/>
,只有 <select></select>
.
As I know, there is no <input type="select" />
, just <select></select>
.
這篇關于CSS 選擇器的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!