<script>document.write("<center><b>文本域美化</b>")</script>
<script>document.write("</center><p>")</script>
1。样式一:<br>
      <br><input   type=file   id=file1 style="display:none"

onpropertychange="javascript:t1.value=this.value;">
<input type=text id=t1>
<img src="http://www.v404.cn/skins/vip/Skin/sk0/img/01.gif" width="43" height="11" style="cursor:hand" onClick="javascript:file1.click();"><br>
<br>
代码如下:<br>
<br>

<input type=file id=file1 style="display:none"
onpropertychange="javascript:t1.value=this.value;">
<input type=text id=t1>
<img src="a.gif" style="cursor:hand" onclick="javascript:file1.click();">

<br>
2。样式二:<br>
<br><input type="file"

onpropertychange="javascript:t2.value=this.value;">
<input type="text" ><br><br>
代码如下:<br>
<br>
&lt;input type=&quot;file&quot; id=&quot;file2&quot; style=&quot;display:none&quot; <br>onpropertychange=&quot;javascript:t2.value=this.value;&quot;&gt;<br>&lt;input type=&quot;text&quot; id=&quot;t2&quot; onclick=&quot;javascript:file2.click();&quot; value=&quot;点击这里&quot;&gt;<br>
<br><br><br><br><br>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2021-12-27
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案