Two upload buttons appear for FileUploadField file upload in Extjs.

Source: Internet
Author: User

Use the FileUploadField plug-in of Extjs to upload files. Because FileUploadField is the extension plug-in of ext, the method cannot be found in its api. This file is in the ux In the examples folder of extjs, therefore, FileUploadField must be introduced before it can be used. during use, two upload buttons are displayed on the page, this is related to the css style of ext, so you need to modify the style:
Copy codeThe Code is as follows:
<Style type = text/css>. upload-icon {
Background: url ('images/image_add.png ') no-repeat 0 0! Important;
}
. X-form-file-wrap {
Position: relative;
Height: 22px;
}
. X-form-file-wrap. x-form-file {
Position: absolute;
Right: 0;
-Moz-opacity: 0;
Filter: alpha (opacity: 0 );
Opacity: 0;
Z-index: 2;
Height: 22px;
}
. X-form-file-wrap. x-form-file-btn {
Position: absolute;
Right: 0;
Z-index: 1;
}
. X-form-file-wrap. x-form-file-text {
Position: absolute;
Left: 0;
Z-index: 3;
Color: #777;
}
</Style>

In this case, the plug-in can be used normally.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.