您现在的位置是:首页 > 电脑技术查询 > web开发

IE7如何改变这种写法

编辑:chaxungu时间:2022-10-02 23:18:14分类:web开发

IE7怎么改变这种写法?
<img src= "GetCode.asp " alt= "验证码,看不清楚?请点击刷新验证码 " onclick= "this.src= 'GetCode.asp '; " height= "21px " align= "absbottom " style= "cursor:pointer; "/>
这个在ie7中已经无效了
要是没有更好的解决办法我就要用到框架了.

------解决方案--------------------
try:

onclick= "this.src= 'GetCode.asp? ' + Math.random(); "