Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre 过长的问题哟 #12

Open
voodeng opened this issue Sep 21, 2012 · 0 comments
Open

pre 过长的问题哟 #12

voodeng opened this issue Sep 21, 2012 · 0 comments

Comments

@voodeng
Copy link
Contributor

voodeng commented Sep 21, 2012

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+ */
}

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

@voodeng voodeng closed this as completed Sep 21, 2012
@voodeng voodeng reopened this Sep 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant