用于选择列表的CSS样式输入[type =“??”] [英] CSS styling input [type="??"] for select lists

查看:96
本文介绍了用于选择列表的CSS样式输入[type =“??”]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

CSS选择选择器


选择列表?

 输入[type =text] 
输入[type =submit]
输入[type =text ] CSS选择器可以细分为


  1. 输入;查找输入所有元素。

  2. [type =text] ;过滤那些具有 type 属性 text 的元素。

因为选择框是< select> 元素而不是< input type = select/> ,您只需使用 select 选择器,如下所示:

 选择{
/ * blah blah blah * /
}


Possible Duplicate:
CSS Select Selector

What is the CSS equivalent to the following when dealing with select lists?

input[type="text"]
input[type="submit"]

解决方案

The input[type="text"] CSS selector can be broken down into;

  1. input; find all elements that are input elements.
  2. [type="text"]; filter those elements by those which have the type attribute of text.

Because a select box is a <select> element rather than a <input type="select" />, you can just use the select selector as follows;

select {
    /* blah blah blah*/
} 

这篇关于用于选择列表的CSS样式输入[type =“??”]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆