@ font-face {
font-family: "myfont";
src: url("../fonts/FONTS.TTF");
}
call
.menu .nav {
font-family: myfont!important;
}
the page is being built with bootstrap, and the design requires that the navigation bar be "Creative shorthand". Download online and install it on your computer, then ps/ the notepad and open it. The font is the same as the design drawing.
but after it is introduced in css, the page opens in a different font. It seems that Microsoft Yahei
then
1. I took a look at the file in F12 Network, that requested my local introduction of / fonts/ Creative italics .TTF.
2. I downloaded another unique style of text on the Internet, put it in the fonts file, changed the reference path to the newly downloaded file name in css, and opened it in the web page to get the new font.
makes me feel as if the problem lies in this" creative simplified script "font, but I can"t figure it out. Have you ever encountered such a problem? Find a solution