css - 从 SelectOneMenu 中移除顶部阴影

标签 css jsf primefaces

我正试图摆脱 SelectOneMenu 中的这个小内部阴影

enter image description here

<h:outputLabel styleClass='defaultOutputLabel' for="sexe" value="Sexe: *" />
<p:selectOneMenu id="sexe" styleClass='selectMenu' required="true" requiredMessage="Vous devez sélectionner un sexe.">
     <f:selectItem itemLabel='Homme' itemValue='Homme' />
     <f:selectItem itemLabel='Femme' itemValue='Femme' />
</p:selectOneMenu>

我试过:

box-shadow: none !important;
border-style: none !important;

我看不出它可能是什么其他选择器。有什么想法吗?

更新: 感谢 tt_dev 的解决方案: .ui-inputfield 部分的 box-shadow 属性。

最佳答案

它是应用于 ui-inputfield css 类的 box-shadow 属性。

您可以使用您提到的以下 css 代码:

.ui-inputfield { box-shadow: none !important; }

关于css - 从 SelectOneMenu 中移除顶部阴影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29921355/

相关文章:

jquery - 单词中交替字母的不同颜色

html - Bootstrap 面板在 Chrome 和 Internet Explorer 中的显示方式不同

html - 调整浏览器大小时,如何避免文本从图像中移开?

JSF 2 复选框和 bool getter

java - a4j :ajax? 可用事件的详细列表

jsf - 使用 JSF/Java EE 从数据库实时更新

jsf - 使用两个 p :dataTables results in NullpointerException 在页面上排序

jsf - 如何在用户选择 <p :datatable>? 的一行后显示对话框

jsf-2 - PrimeFaces 数据表中的条件单元格编辑

html - 在响应式布局中调整大小时是否可以保持背景图像的纵横比?