在我的整个应用程序中,我在 css 中全局声明了文本框样式
input[type='text'], input[type=password], textarea { //My styles }
我需要从搜索文本框中删除此样式
<input id="txtSerach" type="text" placeholder="Search here..." required />
最佳答案
input[type='text']:not(#txtSearch), input[type=password], textarea { //My styles }
关于css - 如何从输入中删除文本框 css 样式[类型 ='text'],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34671642/