日期:2014-05-16  浏览次数:20351 次

在safari浏览器下,用javascript怎么改变标签的长度?
html代码如下:
<html>
<body>
<form   action= " ">
<input   id= "file1 "   type= "file "   onchange= "var   file1=document.getElementById( 'file1 ');file1.size=200; "   />  
</form>
在safari下怎么改不了file标签显示的长度呢?

------解决方案--------------------
try this :

<html>
<body>
<form action= " ">
<input id= "file1 " type= "file " onchange= "this.style.width = 500 " />
</form>