How to make long articles in the article system automatically wrap lines? This question has troubled many people. According to the answers searched online, it often leads to the English words being broken up and line-breaking. So what should we do specifically? Now let’s go and have a look with the editor of Foxin.
The statements of most articles online are just added to CSS:
table {
table-layout:fixed;
word-break:break-all;
word-wrap:break-word;
}
div {
word-break:break-all;
word-wrap:break-word;
}
This can solve the problem that the table and layer are broken, and I did the same in the beginning. However, such code will cause a problem, and you will find that all English words have been truncated, which is not in line with English writing habits and is not conducive to reading.
Later I found that by rewriting the above code, you can prevent the table/layering from breaking and the words from breaking.
as follows:
table {
table-layout: fixed;
word-wrap:break-word;
}
div {
word-wrap:break-word;
}
The above is the editor of the New Technology Channel. The content about how to make long articles automatically wrap in the article system. After reading it, we know how to make long articles automatically wrap in the article. I hope it can help you!