- input 滚动条:
overflow:auto;height:100px;
- input清空
<input type="text" name="fname" onfocus="cleanInput(this)" value="请输入对比内容"/>
function cleanInput(obj){ obj.value = ''; }; document.forms[0].yourInput.value = ''; document.form.reset(); $("input").attr("value","");