从GULP图标字体在css中创建字体内容
我是新手,我真的需要帮助。 我使用gulp,首先从SVG创建字体,然后使用这些字体创建我在页面中使用的css文件 这就是我在css模板中所做的:从GULP图标字体在css中创建字体内容,css,gulp,font-awesome,glyph,icon-fonts,Css,Gulp,Font Awesome,Glyph,Icon Fonts,我是新手,我真的需要帮助。 我使用gulp,首先从SVG创建字体,然后使用这些字体创建我在页面中使用的css文件 这就是我在css模板中所做的: <% _.each(glyphs, function(glyph) { %> .icon-<%= glyph.fileName %>:before { content: "\<%= glyph.codePoint %>" } <% }); %> .icon-:在{content:\“}之前 代码
<% _.each(glyphs, function(glyph) { %>
.icon-<%= glyph.fileName %>:before { content: "\<%= glyph.codePoint %>" }
<% }); %>
.icon-:在{content:\“}之前
代码点是我的问题。这将生成格式为“\E100”、“\E234”等的内容。。但我希望它是“\fxxx”
我无法使用glyph.unicode[0]。。。。。正如上面所说,0不是定义的错误
请帮忙。提前谢谢 请尝试内容:“\”
?猜猜看。试试内容:“\”
?猜猜看。