css - 带有链接 Sprite 图像的表格

标签 css sprite

我试图用 6 个链接的 sprite 图标替换一个有 6 个链接图标的表格,但表格只是空白。这是代码的一部分 - 有什么想法吗?

HTML:

<table><tr>
    <td><a href="https://twitter.com/french_lkl"><div id="icon-twitter" height="35" width="35"></div></a></td>
    <td><a href="https://www.facebook.com/FrenchLanguage"><div id="icon-facebook" height="35" width="35"></div></a></td>
    </tr>
</table>

CSS:

#icon-twitter, #icon-facebook, #icon-gplus, #icon-pinterest, #icon-rss, #icon-newsletter{
background: url(socialmedia.png) no-repeat;
}

#icon-twitter{
background-position: 0 0;
width: 35px;
height: 35px;
}

#icon-facebook{
background-position: -36px 0;
width: 35px;
height: 35px;
}

最佳答案

您的图片不存在。

Failed to load resource: the server responded with a status of 404 (Not Found)

关于css - 带有链接 Sprite 图像的表格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29831463/

相关文章:

html - 这个标志 ""是什么意思?内容 :""

html - 设置单元格大小不超过一定的宽度和高度

python - 在pygame中计算重力/跳跃

swift - Swift 4.1 中的 SpriteNode 移动和旋转

ios - CSS Sprites 的 iPad/iPhone 问题,定位不正确

html - 确保多个可变大小的 flexbox div 保持内联?

javascript - IE EDGE "pointer-events: none"无法处理 span 标签

javascript - 更改全屏背景并在 DIV 悬停时添加文本

java - 如何在 FitViewport View 中绘制 Sprite 。 libgdx

javascript - 从 3d solidworks 模型创建 2d 图像 Sprite