html Copy code The code is as follows:<SPAN class=tag><<SPAN class=title>div</SPAN>></SPAN> <SPAN class=tag><<SPAN class=title>a</SPAN> <SPAN class=attribute>href</SPAN>=<SPAN class=value>"###"</SPAN>></SPAN>Add image<SPAN class=tag></<SPAN class=title>a</SPAN>></SPAN> <SPAN class=tag><<SPAN class=title>input</SPAN> <SPAN class=attribute>type</SPAN>=<SPAN class=value>"file"</SPAN> <SPAN class=attribute>name</SPAN>=<SPAN class=value>"image"</SPAN> <SPAN class=attribute>class</SPAN>=<SPAN class=value>"hidden"</SPAN> <SPAN class=attribute>value</SPAN>=<SPAN class=value>""</SPAN> /></SPAN> <SPAN class=tag></<SPAN class=title>div</SPAN>></SPAN> CSS Copy code The code is as follows:<SPAN class=class>.hidden</SPAN> <SPAN class=rules>{ <SPAN class=rule><SPAN class=attribute>display</SPAN>:<SPAN class=value> none;</SPAN></SPAN> <SPAN class=rule>}</SPAN></SPAN> Copy code The code is as follows:jQuery $('a').on('click', function(e) { e.preventDefault(); $(this).closest('input[type=file]').trigger('click'); }) |
<<: Detailed explanation of the difference between in and exists in MySQL
>>: Solution to overflow:hidden failure in CSS
//grammar: @media mediatype and | not | only (med...
As a tester, you may often need to install some s...
Overview Databases generally execute multiple tra...
Preface Before MySQL 8.0, it was quite painful to...
Table of contents 1. Overview 2. Define a simple ...
1. Benefits of precompilation We have all used th...
The inline-block property value becomes very usef...
Table of contents 1. Browser support 2. export ex...
Table of contents Cross-domain reasons JSONP Ngin...
Table of contents 1. Core commands 2. Common comm...
Table of contents Undo Log Undo Log Generation an...
Achieve results Implementation Code html <div ...
Table of contents 1. Introduction to calculator f...
The installation of MySQL 8.0.12 took two days an...
It is really not easy to do a good reconstruction...