Rumah >hujung hadapan web >html tutorial >这个问题出在哪?_html/css_WEB-ITnose
<a href="http://www.baidu.com"><img src="/static/imghwm/default1.png" data-src="../../Content/Images/Product/@item.PeriodName+.jpg" class="lazy" alt=@item.PeriodId style="max-width:90%" style="max-width:90%" /></a>
<a href="http://www.baidu.com"><img src="/static/imghwm/default1.png" data-src="../../Content/Images/Product/兰州学刊+.jpg" class="lazy" alt=12 style="max-width:90%" style="max-width:90%" /></a>
问题就在这里
楼上可能没注意 我说的错误是图片的连接有问题 那个图片的后缀名前面我用来连接字符串的加号 还在上面
哦
改为:
仍然不对 会变成这种
<a href="http://www.baidu.com"><img src="/static/imghwm/default1.png" data-src="../../Content/Images/Product/兰州学刊+'.jpg'" class="lazy" alt=12 .jpg'" style="max-width:90%"
额 前面也加上
晕死了
还不对
<a href="http://www.baidu.com"><img src="/static/imghwm/default1.png" data-src="'../../Content/Images/Product/兰州学刊'+'.jpg'" class="lazy" alt=12 ../../Content/Images/Product/兰州学刊'+'.jpg'" style="max-width:90%"
<a href="http://www.baidu.com"><img src="/static/imghwm/default1.png" data-src="../../Content/Images/Product/兰州学刊" class="lazy" alt=12 +".jpg'" style="max-width:90%" style="max-width:90%" /></a>
都休息了吗 还在被这个问题困扰着
<html><head> <script type="text/javascript"> var source=function(a,b) { var c=a.concat(b); return(c); } window.onload=function() { var ex=source("../../Content/Images/Product/@item.PeriodName",".jpg"); d1.src=ex; } </script></head><body><img id="d1" / alt="这个问题出在哪?_html/css_WEB-ITnose" ></body></html>