增加
oninput="this.value = this.value.replace(/[^\d.]/g,'');"
详情查看正则表达式