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 超出文本不换行 希望增加如下的css代码 #191

Open
eluotao opened this issue May 15, 2021 · 0 comments
Open

pre 超出文本不换行 希望增加如下的css代码 #191

eluotao opened this issue May 15, 2021 · 0 comments

Comments

@eluotao
Copy link

eluotao commented May 15, 2021

希望在 ~/web/ui/src/components/LogDetail.vue 文件中

<pre class="ui inverted segment">{{printResult}}</pre>

加入下面的 css 样式

pre{
    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+ */
    overflow: auto;
    word-break: break-all;
}

可以实现日志文本超出 自动换行 目前文本超出是不显示的 得复制出来才能看到

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