gpt4 book ai didi

javascript - Feather css 图标不工作

转载 作者:太空宇宙 更新时间:2023-11-04 07:32:32 34 4
gpt4 key购买 nike

我应该使用 feather css 图标,但是图标在我的 mvc 元素上不起​​作用。我尝试更改文件路径,但它再次不起作用。

@font-face {
font-family: "feather";
src: url('../fonts/feather.eot?t=1501841394106'); /* IE9*/
src: url('../fonts/feather.eot?t=1501841394106#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/feather.woff?t=1501841394106') format('woff'), /* chrome, firefox */
url('../fonts/feather.ttf?t=1501841394106') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('../fonts/feather.svg?t=1501841394106#feather') format('svg'); /* iOS 4.1- */
}

@font-face {
font-family: "feather";
src: url('../fonts/feather.eot?t=1501841394106'); /* IE9*/
src: url('../fonts/feather.eot?t=1501841394106#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../fonts/feather.woff?t=1501841394106') format('woff'), /* chrome, firefox */
url('../fonts/feather.ttf?t=1501841394106') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('../fonts/feather.svg?t=1501841394106#feather') format('svg'); /* iOS 4.1- */
}

.feather {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'feather' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;

/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-alert-octagon:before { content: "\e81b"; }

.icon-alert-circle:before { content: "\e81c"; }

.icon-activity:before { content: "\e81d"; }

.icon-alert-triangle:before { content: "\e81e"; }

.icon-align-center:before { content: "\e81f"; }

.icon-airplay:before { content: "\e820"; }

.icon-align-justify:before { content: "\e821"; }

.icon-align-left:before { content: "\e822"; }

.icon-align-right:before { content: "\e823"; }
.
.
.
.

最佳答案

跨源请求被阻止(原因:CORS 请求不是 http)。它发生在本地你可以下载 Feather 字体并将字体文件粘贴到你尊重的字体文件夹中并用新文件替换你的网址并完成。

关于javascript - Feather css 图标不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49249955/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com