首页 > 解决方案 > 我有一个出现的流氓跨度类,它正在破坏链接

问题描述

我试图弄清楚它从哪里填充以及如何摆脱它,以便链接再次工作。

在我的网站上简单分享社交链接。所有链接都应该是这样的:

<div class="share_links sogreen">
    <span class="st_pinterest_custom">
        <a href="http://pinterest.com/pin/create/button/?url={path='recipe/{url_title}'}{if recipe_photo}&media={recipe_photo}{/if}" target="_blank" class="pinterest upper social-share">Pinterest</a>
    </span>
    <span class="st_facebook_custom">
        <a href="https://www.facebook.com/sharer/sharer.php?u={path='recipe/{url_title}'}" target="_blank" class="facebook upper social-share">Facebook</a>
    </span>
    <span class="st_twitter_custom">
        <a href="http://twitter.com/share?text={title}&url={path='recipe/{url_title}'}" target="_blank" class="twitter upper social-share">Twitter</a>
    </span>
</div>

我添加了一个屏幕截图来展示 pinterest 如何在第一个链接中添加一个额外的类。

在此处输入图像描述

我已经突出显示了 chrome 检查元素中的额外跨度。

标签: csshref

解决方案


推荐阅读