IE 和移动 Safari 截断文本..可能是行高问题?

发布于 2024-10-13 12:02:16 字数 1187 浏览 8 评论 0原文

我的页面可以在 Chrome、Safari、Firefox 和 Opera 中正确(且美观)显示,但在 Internet Explorer 和 iPhone 的 Safari 移动版本中稍微重新格式化。具体来说,它的格式仅比可见区域大一点,从而导致文本被截断。可能是行高问题。有什么解决办法吗?当我们这样做时......IE 的文本看起来如此尴尬是怎么回事?我是新手..他们不支持Helvetica??

非常感谢所有建议。

截屏: http://img163.imageshack.us/i/ieformat.png/

HTML:

    <div id="bio_left">
     <p class="justify">People often say it's hard to describe the sound of his records and categorizing him often presents an even bigger challenge, but what is truly undeniable and inarguable is that Fernando Garibay is a hit-making producer, DJ and artist. As multi-instrumentalist who plays guitar, keyboards, drums, bass, a formally trained arranger for string and brass sections and a programmer, with a proficiency that rivals top session players but with a uniqueness that only a seasoned "artist" producer yields, he is able to communicate through music unlike anyone else.</p>
    </div>

CSS:

.text {
 font-family:Helvetica, Arial, sans-serif;
 font-size:12px;
 color:#202024;
 line-height:120%;
}

I've got a page that displays properly (and beautifully) in Chrome, Safari, Firefox, and Opera, but very slightly reformats in Internet Explorer and iPhone's mobile version of Safari. Specifically, it's formatting just a little larger than the visible area, resulting in cut off text. It might be a line-height issue. Is there any solution for it? And while we're at it.. what's up with IE's text looking so awkward? I'm a newbie.. they don't support Helvetica??

All suggestions greatly appreciated.

Screenshot:
http://img163.imageshack.us/i/ieformat.png/

HTML:

    <div id="bio_left">
     <p class="justify">People often say it's hard to describe the sound of his records and categorizing him often presents an even bigger challenge, but what is truly undeniable and inarguable is that Fernando Garibay is a hit-making producer, DJ and artist. As multi-instrumentalist who plays guitar, keyboards, drums, bass, a formally trained arranger for string and brass sections and a programmer, with a proficiency that rivals top session players but with a uniqueness that only a seasoned "artist" producer yields, he is able to communicate through music unlike anyone else.</p>
    </div>

CSS:

.text {
 font-family:Helvetica, Arial, sans-serif;
 font-size:12px;
 color:#202024;
 line-height:120%;
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文