【发布时间】:2021-10-16 10:27:05
【问题描述】:
我尝试使用字体很棒的图标,但有些图标显示而其他图标无法显示。它给了我这个错误:
我的用法:
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/js/all.min.js" crossorigin="anonymous">
<!-- Load font awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css">
</head>
...
some codes
...
</html>
<script>
...some code...
...
...
display data table:
"data": null,
"render": function (data, type, row)
{
if (row.detailPhysicalPath == "") {
return '<button id="' + row.staffCode+ '" onclick="captureClick(this)" type="button" class="btn btn-primary"><i class="far fa fa-camera"></i></button>';}
else {
return '<button id="' + row.staffCode+ '" onclick="captureClick(this)" type="button" class="btn btn-primary"><i class="far fa fa-check-circle-o"></i></button>';}
}
</script>
【问题讨论】:
标签: twitter-bootstrap bootstrap-4 font-awesome