两个按钮覆盖,如何使用底层按钮的功能(急)_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:45:20
Original
1557 people have browsed it

我想将选择文件按钮隐藏到后面的按钮(choose file)下面,但是点击choose file按钮的时候还要用到选择文件按钮的功能,我该怎么做,求赐教

回复讨论(解决方案)

要 input file 透明 ,在上层
下层,一个文本框,一个按钮,file onchange 时把值给显示的 textbox

要 input file 透明 ,在上层
下层,一个文本框,一个按钮,file onchange 时把值给显示的 textbox
谢谢 解决了  上层的file控件dispaly:none 下层的按钮用js调用file按钮的事件  

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template