😎 » HTML5 » Оформление текста » Иконочный Google шрифт
229 0  

Иконочный Google шрифт

Иконочный Google шрифт - да-да он есть и можно использовать кучу иконок бесплатно love

1. Всего то навсего нужно подключить шрифт:

Вид шрифтов 1
<link href="https://fonts.googleapis.com/css2?family=Material+Icons" rel="stylesheet">
или вид второй:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined"  rel="stylesheet">

2. В стили вставляем:

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
Или второй вид
.material-icons-outlined {
font-family: 'Material Icons Outlined'; 
font-weight: normal; 
...

3. Вставляем иконку в html;

<span class="material-icons">face</span>
или второй вид:
<span class="material-icons-outlined">drag_indicator</span>

4. Далее переходим на страницу - https://fonts.google.com/icons  кликаем на иконку и справа получаем нужный код.

bully Инструкция к Гугл иконочному шрифту - смотреть

Залишити свій коментар:

Досвід у веброзробці:

2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2009
2023