<分区>
最佳答案
您可以将 CSS 类应用到您的按钮,并覆盖已被其他 CSS 规则应用到它的所有规则。
<input class="blandbutton" />
.blandbutton {
/* Override rules already set to the button */
/* If you have a CSS rule that gives it a border of 1px solid cyan,
this will cause any element with the blandbutton class to use THIS
as it's more specific. */
border: 1px solid black;
}
关于css - 我不想将样式应用到我的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7664400/