如何删除继承的属性?

发布于 2010-08-12 21:41:12
基本上,您不能删除继承的属性。你需要用“更强的”CSS规则覆盖它们。如果需要,您可以使用!important关键字。
.TaskFormField {
font-size: 10px !important;
}
.TaskFormField {
font-size: 12px; /* One could believe that the font size should be 12px,
but it remains 10px because the !important keyword is used. */
}发布于 2010-08-12 21:39:29
不确定问题是什么?从HTML的代码片段中可以看出,您的表列中有一个"TaskFormField“类,这就是您的样式框中显示的内容。如果你想重写输入,你可以这样做:
字体输入{color:#000;.TaskFormField -size:10pt;font-family:宋体,宋体,无衬线;}
https://stackoverflow.com/questions/3468137
复制相似问题