When uploading on some websites, after clicking the "Browse" button, the [Select File] dialog box will pop up. To achieve this function, just use the input file control~ XML/HTML CodeCopy content to clipboard
The effect picture is like this: Notice! Don't think this is composed of a text and a button, it is actually a file control. Today, I encountered a requirement at work: do not display "No file selected". After tinkering with it for an hour, I found that setting its width value solved it: Code: <input type="file" value="Select file" /> The width value is set to 70px, as shown below: 【beautify】 Ideas: The outer div is to provide a position reference for the input inside, because relative positioning is required when writing styles, so that the real file control covers the simulated one, and then hides the file control (even if the file control is not visible) XML/HTML CodeCopy content to clipboard
Effect: The above article about input file controls and beautification is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. |
<<: JavaScript data transmission between different pages (URL parameter acquisition)
>>: Example of implementing QR code scanning effects with CSS3
Install ZLMediaKit on centos6 The author of ZLMed...
1. The ul tag has a padding value by default in Mo...
Table of contents Preface 1. Local port forwardin...
In CSS, text is one of the most common things we ...
The RHEL/CentOS series of Linux operating systems...
When a company developer executes an insert state...
Table of contents 1. Principle of animation funct...
Table of contents LAMP architecture 1.Lamp Introd...
As usual, today I will talk about a very practica...
When troubleshooting system problems, application...
1 Enter the Alibaba Cloud console, find the domai...
According to major websites and personal habits, ...
There is a medicine for regret in the world, as l...
Table of contents 1. Get a random Boolean value (...
This article explains the difference between arro...