2012年11月17日
摘要: /* * IE6,7,8使用onpropertychange就能实现自适应; * FF,Chrom,opera,让textarea恢复原高度让他获取ScrollHeight的正确高度; * IE9,退格键oninput,onpropertychange都触发不了回调函数,所以绑定个onkeyup; */<style type="text/css">.box{padding-top:50px;text-align:center;margin-bottom:20px;}.main{width:200px;height:48px;border:1px solid #C 阅读全文
posted @ 2012-11-17 20:40 somesayss 阅读(4600) 评论(1) 推荐(0) 编辑