[英]Primefaces selectOneMenu not displayed correctly
I'm using Chrome and I'm getting a weird display for the primefaces p:selectOneMenu: 我使用的是Chrome,并且出现了奇怪的p:selectOneMenu p:selectOneMenu显示:
And sometimes it is shown correctly like this: 有时正确显示如下:
I couldn't find any css rule to override, any one faced this before? 我找不到要覆盖的任何CSS规则,之前有人遇到过此问题吗?
Add this to your css file: 将此添加到您的css文件:
.ui-selectonemenu-label{
width:100% !important;
}
.ui-selectonemenu{
width:100% !important;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.