SIFR - 列表中的链接
我在使用 sIFR 作为列表中的链接时遇到问题。
当我尝试将其应用于我的链接时,我的链接皮肤完美(使用正确的字体和正确的颜色),但每个链接的最后一个单词被剪切或显示在另一行上。
当我将其应用到
- 文本显示良好,但显示为超文本链接(蓝色和下划线)。
我尝试过诸如forceWidth: true、fitExactly: true、forceSingleLine: true、preventWrap: true之类的方法,但似乎没有任何效果。
我现在彻底绝望了。有人遇到同样的问题吗?
我正在使用 wordpress。
这是问题的一个例子: http://www.thibaudcartigny.com/exemple.jpg
感谢阅读。
I have a problem using sIFR for links in a list.
When I try to apply it to the my links are perfectly skinned (with the right font and right color) but the last word of each link is cut or display on an other line.
When I apply it to the
- the text is well displayed but appears as a hypertextlink (blue and underline).
I have tryed anything like forceWidth: true, fitExactly: true, forceSingleLine: true preventWrap: true Nothing seems to work.
I am totally desesperate right now. Do someone as the same problem ?
I am working with wordpress.
Here is an exemple of the problem :
http://www.thibaudcartigny.com/exemple.jpg
Thks for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最常见的原因(至少在我处理 siFR 时)是位于 siFR 渲染样式“后面”的替换 CSS 样式太小。 sIFR 应用自己的样式规则,但根据该基础样式为渲染字体保留空间。如果该 CSS 样式中文本的总宽度不如 SIFR 呈现的文本宽,则 SIFR 会假定空间不足并进行换行。
尝试为该样式提供更大的
letter-spacing
或padding
。通常,这是由负字母间距
引起的,您只需将其设置回 0。记住,我不是在谈论您在设置文件中为 siFR 字体定义的样式,而是在讨论您要更换的一个!
The most common reason for this (at least in my dealings with siFR) is that the replaced CSS style that lies "behind" the siFR rendered style is too small. sIFR applies its own style rules, but reserves space for the rendered font according to that underlying style. If the total width of the text in that CSS style is not as wide than the text rendered by SIFR, SIFR assumes it has run out of space and makes a line break.
Try giving that style a larger
letter-spacing
orpadding
. Often, this is caused by a negativeletter-spacing
that you just need to set back to 0.Remember, I am not talking about the style you define for the siFR font in the settings file, but the one you are replacing!