WebUploader solve the problem of the upload button press F12 job

Encounter an upload button WebUploader plug invalid clicks (in this case the mouse button anywhere, did not change the button), then press F12 only response (in this case the mouse button anywhere, button color will darken) problem, some answers found on the internet, found a way to test effective.
 
The first reason is the emergence of Bug plugin generates [Select File] button in the length and width are 0, so click less; about the need to re-render the page, and F12 function exactly render the page.
 
Solution the following two steps:
 
1) add some style in the page:
 
<style>  
    #filePicker div:nth-child(2){width:100%!important;height:100%!important;}  
</style>  
 
2) If the buttons are not uploaded div tag instead div tag, such as <span id = "filePicker"> Select an image </ span>, to <div id = "filePicker"> Select an image </ div>.
 
If you make the first step but using the span tag, there is only a mouse valid (active, hover button to darken, buttons do not respond when invalid) button below the text area, press F12 after only a mouse click the button to be effective in the area above the text;
 
With div, then no problem, the whole buttons are normal.
 
 
 
 

Guess you like

Origin www.cnblogs.com/colyn/p/10956970.html