如何更改素面中p:fileupload的大小(宽度) [英] How to change the size(width) of p:fileupload in prime faces

查看:73
本文介绍了如何更改素面中p:fileupload的大小(宽度)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个p:fileupload,但是它的大小无法减小.我检查了primefaces3.1用户手册,但找不到减小组件尺寸的属性.由于这个原因,我的fileUpload componenet切割越过了面板.请帮助.我尝试过width =但没有成功.以下是我使用的代码:

I have a p:fileupload but its size can not be reduced. I checked the primefaces3.1 user manual but could not find an attribute to reduce the size of the component.Because of this my fileUpload componenet cut crosses the panel.Please help.I tried to width= but it did not succeed.Below is the code that i use:

<p:fileUpload fileUploadListener="#{editBean.editFileUpload}" width="10px"
                        process="studyPlanEditForm:displayname1"
                        update=":studyPlanEditForm">
                    </p:fileUpload>

推荐答案

您可以将styleClass属性与自己的CSS类一起使用,并重新定义CSS的宽度.

You can use the attribute styleClass with your own css class and redefine the width inside the CSS.

这篇关于如何更改素面中p:fileupload的大小(宽度)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆