我正在使用Topcoat CSS库。你可以看到我有here问题的代码片段。带冒号的CSS类
在样式表中,有下列把一个红色边框的输入无效时:
.topcoat-text-input--large:invalid {
border: 1px solid #ec514e;
}
我的HTML是:
<input type="text" class="topcoat-text-input--large" id="email" placeholder="email" value="<%= model.email %>">
如何设置输入使用CSS无效?如果我改变类的输入来源:
topcoat-text-input--large
到
topcoat-text-input--large:invalid
我不明白的红色边框。那么任何想法如何使用这个CSS?