Use css alpha filter to implement input file style beautification code_Experience exchange

PHP中文网
Release: 2016-05-16 12:06:34
Original
1609 people have browsed it

use css alpha filter to implement input file style beautification code_experience exchange

when uploading files on the web, you need to use the upload box:

Copy after login

even if you assign the onclick handle of f to an object, such as:


         
Copy after login


after you “click”, the file selection dialog box will also pop up. unfortunately, you are disappointed: you still cannot upload files! how to do it? look at this paragraph:

   
Copy after login

click the mouse and see the effect? based on the above idea, we can just put it under a button and that’s it! !

  
Copy after login

in order to achieve a true simulation effect, you have to hide f, add an opaque alpha filter, and add the hidefocus attribute. hide the dotted line of f:

  
Copy after login

you can see the effect of changing opacity=0 to slightly larger.

ok, now you can control their style and position. . .

the above is the content of using css alpha filter to realize input file style beautification code_experience exchange. for more related content, please pay attention to the php chinese website (m.sbmmt.com)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!