It is not recommended to copy the content in Word directly to the editor on the website.

It is not recommended to copy the content in Word directly to the editor on the website.
<br />Question: Why is it not recommended to copy the content in Word directly to the website's editor?
Answer: Directly copying the content from Word and pasting it into the editor of the website will generate a large amount of useless code automatically generated by Word, thereby increasing the amount of code and the size of the page. One or two articles is not a problem, but after dozens or even hundreds of articles, the impact on website space and access will be greater. Moreover, the content copied from Word may not necessarily maintain the original format in Word on the web page. My suggestions are:
1. In the article content page template, in the table where the display content control tag {$ArticleContent} is located, define the CSS "main_tdbg_760" (the default is class="main_tdbg_760", you can also redefine it to a new CSS) that controls the article content in the background style management to the size of the text you want to display, such as:
.main_tdbg_760 /* Content table background and text color definition (760) */
{
padding: 5;line-height:normal;Word-break:break-all;font-size: 18pt;font-family:宋体;
}
That is, define the indentation (padding), line height (line-height), word break (word-break), text size (font-size) and font (font-family) of the article content.
This way, you can define the default display format of the article content as a whole.
2. Select all the contents of the article in Word, copy them, create a new Notepad document to paste them, then select all the contents in Notepad, copy them, and paste them into the website editor. The whole operation can be completed within a few seconds. Compared with directly copying the content in Word, its advantage is that it removes a lot of useless codes generated by directly copying the content of Word document; its disadvantage is that there is no separate font format, such as title font. One thing to note: images in Word document content cannot currently be copied directly into the editor. However, you can save the Word document as an html file to obtain these pictures, and then upload them.
3. Set the size of the title, upload pictures, and set the article format in the website editor.
Question: Is the line spacing displayed in the article content set from CSS? How to set it up?
Answer: We recommend using CSS control, that is, the "line-height:normal;" in the above description, it is recommended to set it to "normal;" (default line height), do not set fixed values ​​such as "line-height:150%;" or "line-height:24;", "line-height:24px;". If a fixed value is set, when a large font is set in the editor, the line height will be fixed to the size you set, causing overlap between lines.

<<:  CSS Pick-up Arrows, Catalogs, Icons Implementation Code

>>:  How to solve the problem of too many open files in Linux

Recommend

Detailed analysis of each stage of nginx's http request processing

When writing the HTTP module of nginx, it is nece...

jQuery to achieve sliding stairs effect

This article shares the specific code of jQuery t...

How many ports can a Linux server open at most?

Table of contents Port-related concepts: Relation...

Detailed explanation of MYSQL large-scale write problem optimization

Abstract: When people talk about MySQL performanc...

Ubuntu boot auto-start service settings

How to create a service and auto-start it in Ubun...

Linux installation MySQL tutorial (binary distribution)

This tutorial shares the detailed steps of instal...

Use tomcat to set shared lib to share the same jar

As more and more projects are deployed, more and ...

How to authorize remote connections in MySQL in Linux

Note: Other machines (IP) cannot connect to the M...

Solve the problem that Mysql5.7.17 fails to install and start under Windows

Install MySQL for the first time on your machine....

Vue realizes dynamic progress bar effect

This article example shares the specific code of ...

JavaScript to display hidden form text

This article shares the specific code of JavaScri...

One line of CSS code to achieve the integration of avatar and national flag

It’s National Day, and everyone is eager to celeb...