如何设置自动完成宽度以正确填充面板?如何正确设置p:自动完成宽度以填充面板
正如你所看到的,使用:
.ui-autocomplete input {
width: 100%;
}
就会把箭头取出面板
编辑:panelGrid的
<p:panelGrid columns="3" style="border: hidden; width: 100%" styleClass="ui-panelgrid-blank">
<p:panelGrid>
<p:outputLabel value="Item name" for="haveName" />
<br/>
<p:autoComplete id="haveName" effect="fade" dropdown="true" forceSelection="true"/>
</p:panelGrid>
<p:panelGrid>
<p:outputLabel value="Paint" for="havePaint" />
<br/>
<p:autoComplete id="havePaint" effect="fade" dropdown="true" forceSelection="true"/>
</p:panelGrid>
<p:panelGrid>
<p:outputLabel value="Certification" for="haveCert" />
<br/>
<p:autoComplete id="haveCert" effect="fade" dropdown="true" forceSelection="true"/>
</p:panelGrid>
</p:panelGrid>
EDIT2:这个是什么当我在autoComplete标记中设置style="width: 100%"
时发生:
EDIT3:发生这种情况时,我结合两种:
填写**什么**面板? – Kukeltje
我已经添加了我的.xhtml页面的panelGrid代码 – TonyRomero
但是**为什么**您是否在自动填充中确定输入大小,而不是自动填充本身呢? – Kukeltje