选择按钮效果很好:
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模板网!
img src 链接中的授权标头Authorization header in img src link(img src 链接中的授权标头)
:hover:before text-decoration none 没有效果?:hover:before text-decoration none has no effects?(:hover:before text-decoration none 没有效果?)
当您特定时,CSS 会更快吗?Is CSS faster when you are specific?(当您特定时,CSS 会更快吗?)
CSS 兄弟选择器(选择所有兄弟)CSS sibling selectors (select all siblings)(CSS 兄弟选择器(选择所有兄弟))
IE:使用奇数/偶数的 nth-child() 不起作用IE: nth-child() using odd/even isn#39;t working(IE:使用奇数/偶数的 nth-child() 不起作用)
如何判断一个元素是否在影子 DOM 中?How can I tell if an element is in a shadow DOM?(如何判断一个元素是否在影子 DOM 中?)