真棒字体图标不适用于输入组

时间:2019-10-28 14:17:32

标签: bootstrap-4 font-awesome

当我使用引导程序和超棒的字体制作登录表单时。其中一个图标无效,而另一个图标有效。当我尝试不带输入组文本的类的i标签时,它起作用了,当我再次添加该类时,图标消失了

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="{{asset('css/all.min.css')}}">
    <link rel="stylesheet" href="{{asset('css/bootstrap.min.css')}}">
    <link rel="stylesheet" href="{{asset('css/styles.css')}}">
    <title>GeniusIT AR Systeem</title>
</head>
<body>
    <div class="align-items-center flex-column d-flex justify-content-center" id="login-container">
        <h1 class="display-4">test</h1>
        <form class="border border-dark p-5 rounded" action="">
            @csrf
            <div class="input-group">
                <div class="input-group-prepend">
                    <i class="fas fa-envelope input-group-text bg-white"></i>
                </div>
                <input type="text" name="name" class="input-control">
            </div>
            <div class="input-group">
                <div class="input-group-prepend">
                    <i class="fas fa-key input-group-text bg-white"></i>
                </div>
                <input type="text" class="input-control">
            </div>
        </form>
    </div>
</body>
</html>

link to image

0 个答案:

没有答案