admin管理员组文章数量:1296301
Using ElementUI I'd like to be able to wrap the text in a column on whitespace rather than in the middle of a word. Normally you'd apply
white-space: normal;
word-wrap: break-word;
To the in a normal column, or wrap in a div with that styling but when using ElementUI el-table and el-table-column it doesn't have any effect. I've tried on the el-table-column as a class and as a direct applied style but nothing changes.
Does anyone have any experience of making this work?
Using ElementUI I'd like to be able to wrap the text in a column on whitespace rather than in the middle of a word. Normally you'd apply
white-space: normal;
word-wrap: break-word;
To the in a normal column, or wrap in a div with that styling but when using ElementUI el-table and el-table-column it doesn't have any effect. I've tried on the el-table-column as a class and as a direct applied style but nothing changes.
Does anyone have any experience of making this work?
Share asked Oct 20, 2018 at 13:28 Ross CoundonRoss Coundon 9171 gold badge12 silver badges20 bronze badges1 Answer
Reset to default 11Inspect the element and check if the properties are correctly set. Should be a problem of CSS Specificity from other parts of the library.
Edit, solution
Try to put this CSS in a position that is after the CSS library, it should fix the problem.
.el-table .cell {
word-break: break-word;
}
本文标签: javascriptElementUIHow to Word wrap breakword in eltablecolumnStack Overflow
版权声明:本文标题:javascript - ElementUI - How to Word wrap: break-word in el-table-column - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741629866a2389296.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论