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
JS implements a hover drop-down menu. This is a s...
question: The following error occurred when insta...
<br />Introduction: This idea came to me whe...
This article is translated from the blog Usability...
Table of contents 1. View the storage engine of t...
Here we only introduce the relatively simple inst...
Let me look at the example code first: 1. Common ...
1. Overflow Overflow is overflow (container). Whe...
Basic knowledge of responsive layout development ...
The reason is that it was not uninstalled cleanly...
XML/HTML CodeCopy content to clipboard < div c...
This article example shares the specific code of ...
HTML structure <body> <div class="w...
If someone asked you whether running EXPLAIN on a...
This article shares the specific code for JavaScr...