onpropertychange不是input的有效属性
2011-09-03 19:55
155 查看
我用的是VS2005,怎么提示“验证(XHTML 1.0 Transitonal):属性onpropertychange不是元素input的有效属性”。
代码是:<input id="image" style="width: 310px; height: 22px" onpropertychange="preview.src=image.value" type="file" name="File1" runat="server"/>
<img id="preview" alt="" src="" style="width: 319px; height: 241px" enableviewstate="true"/>
浏览的图片不能在img中显示。
求解。谢谢
代码是:<input id="image" style="width: 310px; height: 22px" onpropertychange="preview.src=image.value" type="file" name="File1" runat="server"/>
<img id="preview" alt="" src="" style="width: 319px; height: 241px" enableviewstate="true"/>
浏览的图片不能在img中显示。
求解。谢谢
相关文章推荐
- 表单属性改变时触发事件(oninput,onpropertychange,onchange)
- onchange/onpropertychange/oninput
- 捕获input 文本框内容改变的事件(onchange,onblur,onPropertyChange比较)
- js propertychange和oninput事件
- JavaScript document.all 用法(oninput、onpropertychange事件的使用)
- oninput,onpropertychange,onchange的用法和区别
- 监听输入框变化(oninput,onpropertychange,onchange)
- js/jquery 实时监听输入框值变化的完美方案:oninput & onpropertychange
- 实时监听输入框值变化的完美方案:oninput & onpropertychange
- oninput,onpropertychange,onchange的使用方法和差别
- 实时监听输入框值变化的完美方案:oninput & onpropertychange
- onpropertychange 实时监控input输入框事件实现
- js/jquery 实时监听输入框值变化的完美方案:oninput & onpropertychange
- 实时监听输入框值变化的完美方案:oninput & onpropertychange
- oninput,onpropertychange,onchange的用法和区别
- 实时监听输入框值变化的完美方案:oninput & onpropertychange
- javascript 属性改变事件: onpropertychange
- javascript 属性改变事件: onpropertychange
- input file onchange 失效 第一次有效,之后失效
- web前端 -- onkeydown、onkeypress、onkeyup、onblur、onchange、oninput、onpropertychange的区别