search

Home  >  Q&A  >  body text

javascript - File cannot be opened by single click under IE11, but can be opened by double-clicking. Need a solution?

<form action="" id="formPathfile" name="formPathfile" method="post" enctype="multipart/form-data" onsubmit="return false">

    <input type="hidden" id="itemid" name="itemid" value=""/>
    <input type="button"  style="width:100px;  position: absolute;left: 0;top:0; " value="Browse Flie" >
    <input type="file" id="pfile" value="" name="pfile" style="width:150px;height:28px;margin-top:-8px; filter:alpha(opacity=0);
opacity:0; font-size:0" onchange=""  />
</form>
扔个三星炸死你扔个三星炸死你2723 days ago955

reply all(2)I'll reply

  • typecho

    typecho2017-06-17 09:18:26

    Don’t set the transparency first, you can find an area that can be clicked to open.
    Then set font-size:100px to make this area larger.

    reply
    0
  • 代言

    代言2017-06-17 09:18:26

    I set the font-size to 100 and the height to 130% and that’s it

    reply
    0
  • Cancelreply