输入TYPE =“文件”隐藏输入并离开按钮? [英] Input TYPE="File" hide the input and leave the button?

查看:118
本文介绍了输入TYPE =“文件”隐藏输入并离开按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在 input type =file中隐藏输入并保留按钮吗?



<这可能吗?

解决方案

历史上,文件输入一直是HTML风格的一面。但是,它有一些解决方法。看一看一个jQuery插件,它隐藏了一些自定义元素的输入。造型和自定义这些元素要容易得多。



这是一篇关于这个主题的好文章。


Does anyone know how to hide the input in a input type="file" and leave the button?

Is this possible?

解决方案

Historically, the file input has been a thorn in the side of HTML styling. There are some workarounds for it, however. Take a look at a jQuery plugin which obscures the input with some custom elements. Styling and customizing those elements is much easier.

This is a good article on the subject as well.

这篇关于输入TYPE =“文件”隐藏输入并离开按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆