It is not advocated to copy content from Word directly to the editor in the Web site

Source: Internet
Author: User
Tags format copy

Question: Why not promote the content in Word to be copied directly to the editor of the Web site?
Answer: Copy the contents of Word directly to the editor of the website, will produce a lot of Word automatically generated useless code, thereby increasing the amount of code and the size of the page, one or two does not matter, dozens of or even hundreds of after the Web site space and access to the impact will be greater. And the content that is copied from Word does not necessarily guarantee the formatting of the original copy word in the Web page. My advice is:
1, in the article content page template, in controls the display content label {$ArticleContent} in the table, will the background style management control article content the CSS "main_tdbg_760" (the default is class= "main_tdbg_760", You can also redefine it as a new CSS, defined as the size of the text you want to display, such as:
. main_tdbg_760/* Content table background, text color definition (760) * *
{
Padding:5;line-height:normal; Word-break:break-all;font-size:18pt;font-family: Song body;
}
Definitions such as indent (padding), row height (line-height), Word Wrapping (word-break), Text Size (font-size), and Font (font-family) are defined for the content of the article.
This allows you to define the format of the article as it appears by default.

2. Select all the content in Word-copy, create a new Notepad document to paste, and then copy the contents of Notepad and paste it into the site editor. The entire operation can be completed in a few seconds, compared to the direct copy of Word content, the advantage is: To remove the contents of a direct copy of Word documents generated by a large number of useless code; The disadvantage is that there is no separate font format, such as title font. One thing to note: Pictures in the contents of a Word document cannot be copied directly to the editor at this time. However, you can save the Word document as an HTML file and then upload it after you get the pictures.

3, in the Web site editor to set the size of the title, upload pictures, set the article format.

Question: Does the article content display the line spacing to be set from inside CSS? How do I set it?
Answer: We recommend the use of CSS control, that is, "Line-height:normal" in the above description, the proposed set to "normal;" (default row height), do not set such as "line-height:150%;" or "line-height:24;", "LINE-HEIGHT:24PX;" Such a fixed value. If set to a fixed value, when you set a large font in the editor, the row is fixed to the size you set, causing the overlap between rows and rows.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.