sifr 3 - 在我的智慧中' 结束尝试让文本块不换行
期待对此任何方面的任何帮助/评论,但主要问题是关于 sIFR 文本换行,以及如何禁止它。 这应该是一个简单的 html 化工作(哈哈哈)
因此,我将导航和内容剪辑框放在表格中,我知道纯粹主义者可能会鄙视这,但这似乎是最简单/最一致的方式......请原谅。
问题是 sIFR - 我无法让其中一项导航项(“交换技术”)发挥作用; 它一直包裹着。 与此同时,小内容框中的 sIFR 标题已经变得不守规矩,并试图逃脱。
我已经堵塞了 CSS 试图在各种元素中修复它 - 如果 sIFR 专家能够检查它并看看是否有任何关于使 sIFR 头工作的建议,我将永远感激不已。
请注意,我不需要在 sIFR 元素的底部添加任何填充,因为标题全部大写。
如果有帮助,我可以发送设计师正在寻找的图片。
Looking forward to any help/comments on any aspect of this, but the main question is about sIFR text wrapping, and how to disallow it. This was supposed to be a simple html-izing job (ha ha ha)
So I've housed the nav and the content clip boxes in tables, which I know you purists might disdain, but it seemed the easiest/most consistent way... please forgive.
The problem is the sIFR - I can't get one of the nav items ("Exchange Technologies") to behave; it keeps wrapping. Meanwhile, the sIFR headlines in the little content boxes have become unruly and are trying to escape.
I've clogged up the CSS trying to fix it in various elements -- I would be so eternally grateful if a sIFR expert would check it out and see if there are any suggestions on making the sIFR heads work.
Note that I do not need any padding on the bottom of the sIFR elements because the headlines are rendered in all caps.
If it would help I could send along the image of what the designer was looking for.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
sIFR.replace()
的forceSingleLine
参数是解决此问题的最简单方法。 当 Flash 文本比 HTML 文本宽,并且被替换的元素恰好是 HTML 文本的宽度时,通常会出现此问题。 在这种情况下,如果不换行,sIFR 文本将无法容纳在允许的空间中。另一种解决方案是通过
.sIFR-active .myNavItemToBeReplaced
CSS 规则使用letter-spacing
来使 HTML 文本更宽,以便 Flash 文本能够适合而无需换行。The
forceSingleLine
parameter forsIFR.replace()
is the easiest way to resolve this. The problem usually arises when the Flash text is wider than the HTML text, and the elements being replaced are exactly the width of the HTML text. In this case the sIFR text won't fit in the allowed space without wrapping.Another solution is to use
letter-spacing
through.sIFR-active .myNavItemToBeReplaced
CSS rules, to make the HTML text wider so the Flash text does fit without wrapping.