我正在寻找建立我的第一个HTML5网站,并一直在寻找与IE合作.
有html5shiv,Dean Edwards ie7-js然后是Modernizr.这些都大致相同吗?我对哪条路线感到困惑.
如果它们存在于编程中),
如果我有一个包含以下输入的HTML表单:
<input type="text" />
<input type="password" />
<input type="checkbox" />
Run Code Online (Sandbox Code Playgroud)
我想将样式应用于所有type="text"或其中的输入type="password".
或者,我会满足所有输入的位置type != "checkbox".
看起来我必须这样做:
input[type='text'], input[type='password']
{
// my css
}
Run Code Online (Sandbox Code Playgroud)
有没有办法:
input[type='text',type='password']
{
// my css
}
Run Code Online (Sandbox Code Playgroud)
要么
input[type!='checkbox']
{
// my css
}
Run Code Online (Sandbox Code Playgroud)
我环顾四周,似乎没有办法用一个CSS选择器来做到这一点.
当然不是很重要,但我只是一只好奇的猫.
有任何想法吗?