Skip to content

pre 过长的问题哟 #12

Open
Open

Description

@voodeng

pre 和 code标签 过长

xxxxx

xxxxx

xxx文字过长都会有飞出浏览器的问题,不折行

从网上搜了个解决方案出来,

pre, code {
white-space: pre-wrap; /* css-3 /
white-space: -moz-pre-wrap !important; /
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+ */
}

不过加上去,看着不和谐。。。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions