用oninput和onpropertychange 事件IE浏览器下无法实现用户输入时监测字数的
无标题文档.main { width: 546px; margin: 0 auto; margin-top:40px; border: 1px solid #9BAABD;}.top { width: 500px; height: 200px; margin: 20px 20px 0 20px; color:#CCC;}.footer { position: relative; height: 45px; line-height: 45px; margin-top: 10px; border-top: 1px solid #D7D7D7;}.footer .demt { position: absolute; left: 20px; color: #999; font-size: 14px;}.footer input { position: absolute; width: 90px; height: 25px; right: 20px; margin-top: 10px;}.footer .color{ color:#F00;} 欢迎每天微评爱车哦.... 您还可以输入 140 个字
要实现这样的一个功能,在用户输入的时候,可以监测字数的变化,然后提示还可以输入多少字:
360,谷歌,火狐测试均没有问题,在IEtester下测试6.7.8均实现不了这个功能,求高手指导一下是什么原因 |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|