浏览器出于未知原因从img中剥离src属性



有人能提供任何见解吗?为什么在网页的源中,标记会有"src"属性,但在检查器和呈现的页面中,"src"特性及其源url会被删除?我复制并粘贴了原始输出,并将其粘贴到页面中,它起到了作用,并且在出现问题时禁用了js。

<img alt="Facebook" title="Share on Facebook" class="synved-share-image synved-social-image synved-social-image-share" width="24" height="24" style="display: inline; width:24px;height:24px; margin: 0; padding: 0;border: none; box-shadow: none;" src="http://www.site.devv/wp-content/themes/site/assets/images/SocialIcons/ShareIcons/24x24/facebook.png"/>

检查员/呈现页面

<img alt="Facebook" title="Share on Facebook" class="synved-share-image synved-social-image synved-social-image-share" width="24" height="24" style="display: inline; width:24px;height:24px; margin: 0; padding: 0; border: none; box-shadow: none;">

提前感谢您的帮助!

我发现了答案。事实证明,社交共享插件创建了一组有retina图标的重复元素,它在48x48的不同文件夹中寻找图标(不存在,因此没有src(,并隐藏24x24图标。

最新更新