我有基本的 CSS 经验,所以我想知道如何删除由 Primefaces 设置的 CSS 样式?
.ui-inputfield, .ui-widget-content .ui-inputfield, .ui-widget-header .ui-inputfield {
box-shadow: 0 2px 2px #74B2E2 inset;
}
我创建了自己的样式表 myCustomStyle.css
.ui-inputfield, .ui-widget-content .ui-inputfield, .ui-widget-header .ui-inputfield {
box-shadow: ?????? (How can I override the styling)
}
Thanks
Use box-shadow:none
重置box-shadow
为默认值。
See 这个来源 https://developer.mozilla.org/en/CSS/box-shadow有关的信息box-shadow
财产。通过定义相同的属性并使用默认值,可以“重置”所有属性。
为了得到你的myCustomStyle.css
覆盖 Primefaces 的 css 文件,您必须包含您的自定义文件afterprimefaces 的文件。
A last度假村:如果您的自定义样式未应用,请添加!important
在声明之后(但在分号之前):box-shadow: none !important
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)