在输入框前加上代码:
<input type="password" name="oldPwdInput" placeholder="" maxlength="20" autocomplete="off" style="position: fixed;top:-1000px">
<input style="display:none">
<input type="password" style="display:none">
去除输入框的name属性
隐藏输入框技巧
本文介绍了一种在网页中隐藏输入框的技巧,通过调整样式和位置属性,将输入框置于不可见区域,同时去除了输入框的name属性,适用于需要进行特定表单操作而不希望这些输入框干扰用户界面的情况。
在输入框前加上代码:
<input type="password" name="oldPwdInput" placeholder="" maxlength="20" autocomplete="off" style="position: fixed;top:-1000px">
<input style="display:none">
<input type="password" style="display:none">
去除输入框的name属性
2669