Share

Bugzilla in Chinese

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

显示bug评论时自动换行问题

You are viewing a single message from this topic. View all messages.

  1. 2006-11-21 03:56:56 UTC
    当评论很长时,页面显示不会自动换行,只能通过托动滚动条浏览。
    解决办法:/path/to/bugzilla/template/cn/default/bug/comments.html.tmpl
    找到并更改这一行
    <pre[% ' id="comment_text_' _ count _ '"' IF mode == "edit" %] class="wraptext">

    并在:/path/to/bugzilla/skins/custom/global.css中最后加入

    pre.wraptext
    {
    white-space: pre-wrap; /* css-3 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    }
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.