Name: <input><br> Age: <input type="number"><br> Site: <input type="url">
我可以用这些CSS选择底部的两个:
input[type="number"]{ color: gray; } input[type="url"]{ color: blue; }
但是我不知道如何选择没有类型的第一个.我试过了:
input{ color: red; }
但它会改变另外两个.
input[type=""]{ color: red; }
这还不行.任何想法?
input:not([type]) { }
See the jsFiddle.