给div加滚动条
<div style="width:175px;height:100px;background:white;overflow:scroll;"> <span>dfsdf999999999999999</span> <span>dfsd99999999999999999f</span> <span>dfsd99999999999999999f</span> <span>dfsdf9999999999999999</span> <span>dfsd99999999999999f</span> <span>dfsdf99999999999</span> <input type="button" onclick="test()" value="测试"/> <input type="text" id="i1" name="nameTest" value="sss"/> <input type="text" id="i1" name="nameTest" value="sss"/> <input type="text" id="i1" name="nameTest" value="sss"/> <input type="text" id="i1" name="nameTest" value="sss"/> <input type="text" id="i1" name="nameTest" value="sss"/> <input type="text" id="i1" name="nameTest" value="sss"/> </div>
posted on 2017-08-17 14:28 biyangqiang 阅读(117) 评论(0) 编辑 收藏 举报