css自定义字体

@font-face {font-family: "iconfont";
  src: url('../iconfont/iconfont.eot?t=1585271332268'); /* IE9 */
  src: url('../iconfont/iconfont.eot?t=1585271332268#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMsAAsAAAAABxwAAALdAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgqBdIFtATYCJAMMCwgABCAFhG0HSBtFBsgOJQmRwIDhAUNhBF9jv31397+jmtwi3kkMSTSRCglKphRKh+4lMK/uV4rrxgtm3zZMpJKUUFHMTqZjvc1tZzq3/k4nZhP/czm91fBw7G9ZLnNMPuoFGAcU0N4YBRZgAQXELcNbF/Mh3ifQNCkPdVzb3A2CFHhZIB4JT4OgQkJRjHJdqDbsLeKFv3p6SrfwHH0//mxEEEklw2tPH2o4UP759W2y7+r/qmGBUC7ng3GIjCVAIS4aC+d8hcHw1TT4dddXFSEtld7cJFL4pupB/3iJqMKtbTCHbMlDKZmY4CtZjpjIi6soOAE8AKX/bbIYDgsbMHp27t51LC3syOuevYl9x9O7Q6mW1tnRQcvqefSo2+vtte2eS4/gfqvmqp16wCvEZ+eetHdY2fetdg4/sLty67YV7N24U/XjBfwAX/yougPd5/6fum6tlq9acsN//vygz8wMNUgNzMwOglSzUgOoe2ZmsPh5d1dkBNM9j+gRkWPASwVXbZysS2qj1SfXwe4lTy5JLoHd6+UgGIcX5l2fj5AffU7+79/4uHF7eiyy+He9VcD7QSMtchTDTfW7CQZ/Vzmwp/hmqrG4CqYIQ9nanfoSSGaG/cORXk+mmwYGtxLqBjJIaiYgq5tCC2UJKlq2oKpuD5oW1R1u6aPzFaWBBdsBQrezkHR6g6zbbbRQHkPFoM9Q1R2+0HQWsWe2zAQJqdIRbSIOMnOQsIqMqdsMids7ET8l0npeHfF6kW6QNHQ7XOVyHZKRvsQGY5r3mCaGWFckWAuPIVFUoKork4g1HROmqRY6nbjpRQ5WkUCIIzqEZkI4EGMORLAUMiwGm0Iqn++E8KaIaHoHqSfZC9EZyOiQm4NrAFpnkAeRHuUZwzSeh8mEQZhOIYFqYRYiEikgtXnWJIRlcpiYkFMVcpJ+eKjBsb1J+r9D0ITX5kiRo+i4mTIMIiM+Pl+i5QhMTys6MVGhDhNRBAAAAAA=') format('woff2'),
  url('../iconfont/iconfont.woff?t=1585271332268') format('woff'),
  url('../iconfont/iconfont.ttf?t=1585271332268') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
  url('../iconfont/iconfont.svg?t=1585271332268#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-bussiness-man:before {
  content: "\e6ef";
}

.icon-favorites-fill:before {
  content: "\e721";
}

.icon_lists li .code-name {
  line-height: 1.2;
}

.icon_lists {
  width: 100% !important;
  overflow: hidden;
  *zoom: 1;
}

.icon_lists li {
  width: 100px;
  margin-bottom: 10px;
  margin-right: 20px;
  text-align: center;
  list-style: none !important;
  cursor: default;
}

.icon_lists li .code-name {
  line-height: 1.2;
}

.icon_lists .icon {
  display: block;
  height: 100px;
  line-height: 100px;
  font-size: 42px;
  margin: 10px auto;
  color: #333;
  -webkit-transition: font-size 0.25s linear, width 0.25s linear;
  -moz-transition: font-size 0.25s linear, width 0.25s linear;
  transition: font-size 0.25s linear, width 0.25s linear;
}

.icon_lists .icon:hover {
  font-size: 100px;
}

p:before
{
  content:"台词:";
}

@font-face {
  font-family: 'myRegular';
  src: url('../iconfont/fontname.ttf');
}

h1{font-family: myRegular}

 

你可能感兴趣的:(go)