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

Linux super detailed gcc upgrade process

Table of contents Preface 1. Current gcc version ...

A brief discussion on MySQL temporary tables and derived tables

About derived tables When the main query contains...

Comprehensive summary of mysql functions

Table of contents 1. Commonly used string functio...

Solve the problem that Navicat cannot connect to MySQL on the Linux server

At the beginning, I felt sad. The screenshots are...

Introduction to fourteen cases of SQL database

Data Sheet /* Navicat SQLite Data Transfer Source...

JavaScript to implement the web version of Gobang game

This article shares the specific code for JavaScr...

Example of how to identify the user using a linux Bash script

It is often necessary to run commands with sudo i...

17 JavaScript One-Liners

Table of contents 1. DOM & BOM related 1. Che...

JS cross-domain solution react configuration reverse proxy

Cross-domain solutions jsonp (simulate get) CORS ...

The ultimate solution for writing bash scripts with nodejs

Table of contents Preface zx library $`command` c...

Web page header optimization suggestions

Logo optimization: 1.The logo image should be as ...