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

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

问题描述

可能的重复:
CSS 选择选择器

在处理选择列表时,CSS 等效于以下内容吗?

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

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

推荐答案

input[type="text"] CSS 选择器可以分解为;

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

  1. 输入;查找属于 input 元素的所有元素.
  2. [type="text"];过滤那些具有 texttype 属性的元素.
  1. input; find all elements that are input elements.
  2. [type="text"]; filter those elements by those which have the type attribute of text.

因为选择框是一个 <select> 元素而不是 ,你可以只使用 select 选择器如下;

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=&amp;quot;??&amp;quot;]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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