简体   繁体   English

CSS 省略号不适用于特定 web fonts

[英]CSS ellipsis not working on specific web fonts

I'm having a weird problem with a section of my site.我的网站的一部分有一个奇怪的问题。 on an h2 tag, I want to use the CSS ellipsis property whenever the text is overflowing the screen size.在 h2 标记上,每当文本溢出屏幕大小时,我想使用 CSS 省略号属性。

Now, this is a repetitive section I am using on this page - and the only difference is the font applied to the h2 tag - so I know the CSS style I am using is good (overflow: hidden, text-overflow: ellipsis, and etc...)现在,这是我在此页面上使用的重复部分 - 唯一的区别是应用于 h2 标签的字体 - 所以我知道我使用的 CSS 样式很好(溢出:隐藏,文本溢出:省略号,和ETC...)

Can anyone help me find what is the problem?谁能帮我找出问题所在?

here is a screenshot of the section that is working the right way:这是以正确方式工作的部分的屏幕截图:

here is a screenshot of the section that is not working the right way这是未以正确方式工作的部分的屏幕截图

You can visit the site at - https://www.hacollective.com/ and test in mobile size in order to see the difference.您可以访问该站点 - https://www.hacollective.com/并在手机尺寸中进行测试以查看差异。

The id of the part with the h2 problem is "col-221542828"有 h2 问题的部分的 id 是“col-221542828”

Thanks in advance,提前致谢,

Shahar.沙哈尔。

The problem with missing ellipse points lies in the font specified for this h2 - font-family: tzur,sans-serif!important .缺少椭圆点的问题在于为此h2 - font-family: tzur,sans-serif!important指定的字体。

Here:这里:

.font-tzur {
    font-family: tzur,sans-serif!important;
}

Which are loaded from the font-load-tzur.css file.font-load-tzur.css文件加载。

Check the correctness of loading this font tzur .检查加载此字体tzur的正确性。

For example - If you put a different font, the ellipse points will appear.例如 - 如果您放置不同的字体,则会出现椭圆点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM