現象と仕組みIEには input type=submit を実装していなくても、 <input type="text" value="" style="width:0px; border:none" readOnly="true"> 回避例type=text がひとつの場合<html> <head> <head> <body> <form action="#"> <input type="text" value="test"> </form> </body> </html> ↓type=text を2個にする。 <html> <head> </head> <body> <form action="#"> <input type="text" value="test"> <input type="text" value="" style="width:0px; border:none" readOnly="true"> </form> </body> </html> type=file のみの場合<html> <head> </head> <body> <form action="#"> <input type="file" value="test"> <input type="file" value="test"> </form> </body> </html> ↓type=text を2個にする。 <html> <head> </head> <body> <form action="#"> <input type="file" value="test"> <input type="file" value="test"> <input type="text" value="" style="width:0px; border:none" readOnly="true"> <input type="text" value="" style="width:0px; border:none" readOnly="true"> </form> </body> </html> 備考<input type="text" value="" style="width:0px; border:none" readOnly="true"> を <input type="text" style="width:0px;filter:Alpha(opacity=0);" disabled> に置き換えても可能 |