我发现了coreUI。
我试图在github上创建这个login.html: https://github.com/mrholek/CoreUI-Free-Bootstrap-Admin-Template/blob/master/Static_Full_Project_GULP/pages-login.html
一切都很好,但无法显示用户图标和锁定图标。相反,我得到了两个默认图标。
我正在处理名为coreUI的文件夹,其中包含:
的login.html
css文件夹(包含来自git repo的style.css和simple-line-icons.css)
bower_components文件夹(包含jquery,bootstarp和tether)
所以路径应该是正确的。
此外,当我在浏览器中检查元素时,我可以在css规则选项卡中看到锁定图标和用户图标的内容\e08e
和\e005
。
但是它们显示的是相同的默认图标。任何帮助将不胜感激。
我也尝试过register.html; https://github.com/mrholek/CoreUI-Free-Bootstrap-Admin-Template/blob/master/Static_Full_Project_GULP/pages-register.html但同样的问题。所有图标都显示为defaut。
这是我的login.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="...">
<meta name="author" content="....">
<meta name="keyword" content="....">
<!-- FavIcon link-->
<link rel="shortcut icon" href="../favicon.png">
<!-- Icons -->
<link href="css/simple-line-icons.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<title>Login</title>
</head>
<body class="app flex-row align-items-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card-group mb-0">
<div class="card p-4">
<div class="card-block">
<h1>Sign In</h1>
<p class="text-muted">Sign In to your account</p>
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-user"></i>
</span>
<input type="text" class="form-control" placeholder="Username">
</div>
<div class="input-group mb-4">
<span class="input-group-addon"><i class="icon-lock"></i>
</span>
<input type="password" class="form-control" placeholder="Password">
</div>
<div class="row">
<div class="col-6">
<button type="button" class="btn btn-primary px-4">Login</button>
</div>
<div class="col-6 text-right">
<button type="button" class="btn btn-link px-0">Forgot password?</button>
</div>
</div>
</div>
</div>
<div class="card card-inverse card-primary py-5 d-md-down-none" style="width:44%">
<div class="card-block text-center">
<div>
<h2>Sign up</h2>
<p>Site description....</p>
<button type="button" class="btn btn-primary active mt-3">Register</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/tether/dist/js/tether.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>
答案 0 :(得分:0)
答案 1 :(得分:0)
如果要使用@ coreui / icons,这就是angular.json的外观
"styles": [
"src/styles.sass",
"node_modules/@coreui/coreui/dist/css/coreui.css",
"node_modules/@coreui/icons/css/all.css"
答案 2 :(得分:0)
您在 angular.json 中的设置可能会免费列出:
"styles": [
"node_modules/@coreui/icons/css/free.css",
更改为:
"styles": [
"node_modules/@coreui/icons/css/all.css",