Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
.navbar-dark .navbar-toggler { color: green; border-color: green; } .navbar-dark .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5"); }
<!DOCTYPE html> <html lang="ru"> <head> <title>Recipes!</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> <link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <link href="img/logo.png" rel="icon" type="image/png" /> <link rel="stylesheet" href="Style.css"> </head> <body class="backgr"> <nav class="navbar navbar-expand-lg bg-dark navbar-dark sticky-top"> <a href="Index.html" class="navbar-brand brand"><img src="img/logo.png" alt="Coock" class="logo">Recipe</a> <button class="navbar-toggler "data-toggle="collapse" data-target="#menu1"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="menu1"> <ul class="navbar-nav"> <li class="nav-item"><a href="Index.html" class="nav-link active">all recipes</a></li> <li class="nav-item"><a href="Hot_Dish.html" class="nav-link">hot dish</a></li> <li class="nav-item"><a href="Salad.html" class="nav-link">salad</a></li> <li class="nav-item"><a href="Pastry.html" class="nav-link">pastry</a></li> </ul> <form action="OBR.PHP" class="form-inline ml-auto"> <input type="text" class="form-control mr-sm-2" placeholder="Search"> <button class="btn btn-warning my-2 my-sm-0" type="submit">Search</button> </form> </div> </nav> <div class="container main"> <div class=row> <div class="col-12"> <h1 class="text-center">All recipes</h1> </div> </div> <div class="row"> <div class="col-4"><img src="img/images/soup.png" alt="soup"></div> <div class="col-4"><img src="img/images/meat.png" alt=""></div> <div class="col-4"><img src="img/images/desert.png" alt=""></div> </div> <div class="row"> <div class="col-4"><img src="img/images/vipechka.png" alt=""></div> <div class="col-4"><img src="img/images/" alt=""></div> <div class="col-4"><img src="img/images/" alt=""></div> </div> <div class="row"> <div class="col-4"><img src="img/images/" alt=""></div> <div class="col-4"><img src="img/images/" alt=""></div> <div class="col-4"><img src="img/images/" alt=""></div> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> </body> </html>
Но после этого значок так и не появился, зато появился бордер вокруг тогллера. Стиль цвета не изменяет даже цвет текста.
Вот код HTML: