CSS方式(可在此处找到基本代码):
<html> <style type="text/css"> div.fileinputs { position: relative; } div.fakefile { position: absolute; top: 0px; left: 0px; z-index: 1; } div.fakefile input[type=button] { cursor: pointer; width: 148px; } div.fileinputs input.file { position: relative; text-align: right; -moz-opacity:0 ; filter:alpha(opacity: 0); opacity: 0; z-index: 2; } </style> <div > <input type="file" /> <div > <input type="button" value="Select file" /> </div> </div></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)