<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> 
<title>input file的另类做法</title> 
<style type="text/css"> 
<!-- 
#input1{border:1px solid #0000FF} 
#btn1{width:70px;height:21px;font-size:12px;padding-top:3px;border-left:1px solid #FFFFFF;border-top:1px solid #FFFFFF;border-

right:1px solid #666666;border-bottom:1px solid #666666} 
//--> 
</style> 


</head> 

<body> 
'<div class="inpcen">',//文本框图片
          '<div class="fl">',
            '<input name="RequestFile" style=" flaot:left;width:210px;" >',
          '</div>',

 '</div>',
 '<div class="setBottom btnBlue fl"> <a href="javascript:void(0)" ></div></div>',
        '</div>',

</body> 
</html>
<script type="text/javascript">
/*
****文本框可以是有背景图片的
**浏览按钮可以是图片,但是必须用file浏览按钮覆盖住,以及定位好(其实就是把他定位到自定义的图片按钮上人后透明度为0)

 $('#RequestFile').bind('change',function(){
                
          $('#RequestFile1').val($(this).val());
          
         })  */

</script>

相关文章:

  • 2021-10-15
  • 2021-11-05
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-09-15
  • 2022-02-24
猜你喜欢
  • 2022-01-15
  • 2022-12-23
  • 2021-06-21
  • 2021-08-30
  • 2022-12-23
  • 2021-07-28
  • 2021-11-03
相关资源
相似解决方案