我的aspx页面中有两个img标签,如下所示 .
<img src="../Images/icon1.png" class="img-style" alt="Icon" />
<img src="../Images/icon1.png" class="img-style" alt="Icon" />
两个img标签都使用与src属性相同的css类和相同的图像 .
出现了像“ Removing the src attribute of each img tags and adding the same image as the background-image in the CSS class is better and performance efficient ”这样的争论 .
我需要有正确理由的上述陈述的专家意见 . 如果我删除了src属性并将图像作为背景图像添加到"img-style" css类中, how it helps to improve performance ?
请帮忙 . 谢谢 .
1 回答
得到了及时回复:http://forums.asp.net/post/5739756.aspx感谢AidyF .