var Cards = [
,
"apple.png",
"fa fa-anchor",
"fa fa-bolt",
"fa fa-cube",
"fa fa-anchor",
"fa fa-leaf",
"fa fa-bicycle",
"fa fa-diamond",
"fa fa-bomb",
"fa fa-leaf",
"fa fa-bomb",
"fa fa-bolt",
"fa fa-bicycle",
"fa fa-paper-plane-o",
"fa fa-cube"
];
这些是这里的图标
<link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
如何将它们替换为我自己的jpeg图像?
答案 0 :(得分:0)
这些是字体超棒的图标类,它们通常在<i>
标签上使用,例如:
<i class="fa fa-cube"></i>
如果要使用自己的图像,应考虑将<i>
标签替换为<img>
标签,如下所示:
<img src="path_to_img/cube.png" height="16" width="16">