lyzxx

定义 input 中 file类型的 按钮的样式

<input type=file name=browse style="display: none;">
<input type=text name=file>
<input type=button style="color:white;background-color: #0066CC;height:20px; border: solid 1px #000; width: 80px;text-align:center;" onClick="browse.disabled=false;browse.click();file.value=browse.value;browse.disabled=true" value="Select a File">

只能采取隐藏input type=file而采用标准的按钮来代替它

[注:转自CSDN社区]

分类:

技术点:

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2021-06-09
  • 2021-12-03
  • 2022-01-31
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2022-01-08
  • 2022-01-08
  • 2021-12-30
  • 2022-01-08
  • 2022-12-23
  • 2022-01-22
  • 2021-11-29
相关资源
相似解决方案