开发者

CSS Select Selector

Selecting for buttons works fine:

input[type="submit"]
{
    background:#efefef;
    width:auto;
    padding:5px;
    color:#666;
    font-s开发者_开发知识库ize: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?


Try this:

select {
    background:#000;
}

As I know, there is no <input type="select" />, just <select></select>.


select NOT input[type=select] - browser offer differing capabilities on styling the select element so be patient

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜