dhl:img 的src 在 ie7下是将全路径。>ie8和firefox没有问题

$("#hidPicUrl").val($(this).attr('src'));

<INPUT id=hidPicUrl type=hidden  />

<img src="/Images/icon/house.png" width="60" height="60" />

这样的话,>ie8和firefox没有问题:

<INPUT id=hidPicUrl type=hidden value=/Images/icon/music.png name=ctl00$phMain$hidPicUrl>

,但是ie7下是将全路径

<INPUT id=hidPicUrl type=hidden value=http://10.1.120.31:807/Images/icon/music.png name=ctl00$phMain$hidPicUrl>

这样只能判断:

            adLayout.LeftPicture = this.hidPicUrl.Value.StartsWith("http://") ? this.hidPicUrl.Value : WebUtil.SysConfigInstance.WebHost + this.hidPicUrl.Value;             adLayout.ClickUrl = this.txtAdLinkUrl.Text;

原文地址:https://www.cnblogs.com/dudu837/p/2365298.html