English 中文(简体)
在<e>所列三个字体中,只有两个显示
原标题:Only two out of the three fonts listed in <style> show up

I m having issues with fonts. I was doing some tests with HTML, and I had three fonts listed. all three are listed exactly the same, as you can see below:

<style>
 
   @font-face {
    font-family:  ktegaki ;
    src: url(https://dl.dropbox.com/s/0v89ncr2notdcgc/KTEGAKI.ttf);
}
 
  @font-face {
    font-family:  starlight ;
    src: url(https://dl.dropbox.com/s/cfcp07kvx3qut4s/starlight.ttf);
}
 
  @font-face {
    font-family:  romantics ;
    src: url(https://dl.dropbox.com/s/f9cfrx4wyt13rwv/ROMANTIC.TTF);
}
</style>

然而,在三个字体中,只有罗马语和星号在我插入一个内容时显示出来。 我不知道我干什么错了。

我在将“kegaki font”插入任何内容时,不作任何打字。 首先,我怀疑,输电箱与电线的连接被打破,它被删除,但是,一旦我把它复制并贴在我的浏览器的搜索表上,并迫使其进入,它就把电线下载到该装置上,因此没有,它就与来文方无关。

我试图将“或符号放在ur上”。 无改动。

我也曾问过谷歌龙像像或DM Sans等共同的故事。 两人都是名单上的第一人。 我假定,它是一个老板安置问题,但在冲动这些老板(和kt子)之后,仍然没有变化。 我真的没有把要做什么。 这似乎就象一个浏览器问题一样,似乎与问题在法典中一样。

EDIT:通过这一方式,也就是如何将字体列入现在的内容(内容名称经过编辑,在原法典中名称不同):

#name1 {
width:100px;
height:100px;
background: white;
border: 3px double #ccc;
border-radius: 0px;
padding: 6px;
overflow: auto;
font-family: Ktegaki;
font-size:10px;
color: #000;
}
 
#name2 {
background: #ccc;
border: 1px solid #000;
border-radius: 7px;
padding: 2px;
color: #000;
font-size: 7px;
font-family: Starlight;
 
}
 
#name3 { 
font-family: Romantics;
font-style: bold;
font-size: 2.5em; 
letter-spacing: 2px;
text-shadow: -1px 0 #fff, 0 1px #000, 1px 0 #000, 0 -1px #fff, 0 0; 
color: #b84154; 
}

如上文所述,只有罗马人和星号。 Ktegaki font拒绝证明我所做的一切。

EDIT 2: here is the code that I used after the tag:

<div id="name1">
<p><div id="name3">Text here</div><mark id="name2">Text here</mark><br><br> text text text text text text text text text text text text text text text </p>
</div>

它是一个滚动箱;推土机应显示第二个
之后的多个“文字”。

EDIT 3: just put the code through a validator and turns out that the < /p> end tag after the multiple "text"s (which is where the ktegaki font should be showing up) is getting ignored because it s unexpected...??? very weird. I don t know why it s getting ignored too, it doesn t seem unexpected to me.

EDIT 4:我试图删除这些内容,没有区别。 Font still don t show up.

问题回答

我怀疑其与<代码><p> tag在提早关闭,因为其中已经存在一个组级要素(<代码><div> tag)。 见下文:

“栏目是组级要素,如果在封闭式<代码></p>标签之前加上另一个组级元素,则将自动关闭。 参见下文“省略”

你们可以把名字3 div改为<span>来解决(尽管我把你的代码搁置起来似乎与FYI一样。)





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签