Dynamically change image src using Jquery not working in IE and firefox

前端 未结 4 791
长情又很酷
长情又很酷 2021-01-12 09:06

I am implementing a captcha for a email. when click on linkEmail button email modal will open. there i have to set captcha image generated by a handler (Captcha

4条回答
  •  既然无缘
    2021-01-12 09:35

    If you specify any inline style attribute, Height or Width like,

    
    
    

    then first remove it and try again.

    Even if you externally specify style using style tag,

      #imageId{
        height : 100px;
        width : 100px;
      }
    

    then also first remove it and try. After you remove the style attribute from the images, it will display image.

    Height attribute is may work with IE but width attribute not working.

    If the above solution doesn't work, then : Sometime PNG files are not displaying as well. So try to use their JPG image.

提交回复
热议问题