我添加了一个用于上传图像的自定义按钮。但是单击按钮时,它不会打开用于选择图像的窗口/模式。我创建了以下代码片段:.cx_forms{padding:30px 0; max-width:700px;}.cx_forms-header{margin-bottom:30px;}.cx_forms h4{color:#2baab1; font-size:24px;}.cx_forms-header p{margin-top:10px;}.cx_forms-header p:first-child{margin-top:0;}.cx_forms-contents ul li{margin-bottom:30px;}.cx_forms-contents ul li:last-child{margin-bottom:0;}.cx_forms-contents ul li label{display:block; margin:0 0 10px 0; line-height:1.6;}.cx_forms-contents ul li .form-control{border-radius:4px; height:40px;}.cx_forms-contents ul li textarea.form-control{min-height:150px; resize:none;}.cx_forms-contents ul li .row.rows{margin:-15px;}.cx_forms-contents ul li .row.rows .columns{padding:15px;}.required{color:#ff0000; font-size:20px; display:inline-block; font-weight:normal; line-height:1;}.cx_forms .cx_forms-contents ul li h4{margin-bottom:15px;}.cx_radio-group{margin:-5px -15px;}.cx_radio-column{padding:5px 15px;}.cx_forms-label{margin-bottom:10px; font-weight:600;}.custom-file-input-wrap{position:relative; margin-top:20px;}.custom-file-input-wrap .custom-file-input{display:none;}.custom-file-input-label{background-color:#45bfcb; padding:10px 15px; line-height:20px; text-align:center; color:#fff; font-size:15px; font-weight:400; cursor:pointer; display:inline-block !important;}.custom-file-input-label:hover, .custom-file-input-label:focus{color:#fff; background-color:#33b3c0;}.cx_forms .submit-btn{background-color:#45bfcb; padding:10px 15px; line-height:20px; text-align:center; color:#fff; font-size:15px; font-weight:400; cursor:pointer; display:block; border:0; height:44px;}.cx_forms .submit-btn:hover{color:#fff; background-color:#33b3c0;}.custom-file-input-labels{display:none; font-size:13px;}.custom-file-input-labels span{display:inline-block; margin-right:5px;}.custom-file-input-labels span:last-child{margin-right:0;}.custom-file-input-labels span.cx_form-close-btn{font-size:16px; cursor:pointer; color:#2baab1;}我正在jquery-MultFile以这种形式使用库。
添加回答
举报
0/150
提交
取消