![](/img/trans.png)
[英]<rich:fileUpload> CSS customization: Don't need '+' symbol in button
[英]rich:fileUpload remove Stop button
我正在使用rich:fileupload在應用程序中實現上傳功能。我不想使用rich:fileupload標簽提供的停止按鈕。 有什么方法可以刪除(或隱藏)“停止”按鈕。 我試圖將stopButtonClass設置為顯示:沒有,它仍然顯示一個小方塊-可能是周圍div的邊框。
有誰知道如何完全刪除停止按鈕? 請指導我
<rich:fileUpload id="upload" fileUploadListener="#{fileUploadBean.listener}" maxFilesQuantity="#{fileUploadBean.uploadsAvailable}"
acceptedTypes="txt,ppt,jpg,doc,xls, gif, bmp,pdf" ontyperejected="alert('Only TXT,PPT,DOC,XLS JPG, GIF,PDF and BMP files are accepted');"
addControlLabel="Browse" listHeight="50px" listWidth="auto" onsizerejected="alert('You can only upload upto 10MB files')" autoclear="false"
immediateUpload="#{fileUploadBean.autoUpload}" allowFlash="#{fileUploadBean.useFlash}"
stopButtonClass="rich-fileupload-ico-stop" clearAllControlLabel="" clearControlLabel="" stopControlLabel=""
cleanButtonClass="rich-fileupload-ico-clear" cleanButtonClassDisabled="rich-fileupload-ico-clear" stopButtonClassDisabled="rich-fileupload-ico-stop">
<a4j:support event="onuploadcomplete" reRender="uploadInfo" />
<a4j:support event="onuploadcanceled" reRender="uploadInfo" />
</rich:fileUpload>
我通過為按鈕邊框屬性設置display:none解決了完全隱藏rich:fileUpload的停止按鈕的問題。 下面是css的代碼:
.rich-fileupload-button-border{ border:none ; }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.