In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The content of this article mainly focuses on why the content of Word is not copied directly into the editor of the website. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
Question: why not advocate copying the content in Word directly into the editor of the website?
Answer: directly copy and paste the contents of Word into the editor of the website, it will produce a lot of useless code automatically generated by Word, thus increasing the amount of code and the size of the page, it doesn't matter if you write one or two articles, dozens or even hundreds of articles will have a greater impact on site space and access. And the content copied from Word does not necessarily guarantee the format of the original copy Word in the web page. My advice is:
1. In the article content page template, in the table where the control display content tag {$ArticleContent} is located, define the CSS "main_tdbg_760" in the background style management that controls the article content (the default is class= "main_tdbg_760", or you can redefine the new CSS) to the size of the text you want to display, such as:
.main _ tdbg_760 / * content table background, text color definition (760) * /
{
Padding: 5 lineline words, colors, colors, etc.
}
That is to define the definition of indentation (padding), line height (line-height), line wrapping (Word-break), text size (font-size) and font (font-family) of the content of the article.
In this way, you can make an overall definition of the format in which the article content is displayed by default.
2, select all the contents of the articles in Word-copy, create a new notepad document to paste, and then copy all the contents of notepad and paste into the website editor. The whole operation can be completed in a few seconds, and the advantage over directly copying the content in the Word is that it removes a lot of useless code generated by directly copying the content of the Word document, and the disadvantage is that there is no separate font format, such as the title font. One thing to note: pictures in Word document contents cannot be copied directly to the editor at this time. However, you can save the Word document as a html file and get these images before uploading.
3. Set the size of the title in the website editor, upload pictures, and set the article format.
Question: is the line spacing displayed in the article set from CSS? How to set it up?
Answer: we recommend using CSS control, that is, "line-height:normal;" in the above description, and suggest setting it to "normal;" (default row height). Do not set fixed values such as "line-height:150%;" or "line-height:24;" or "line-height:24px;". If it is set to a fixed value, when it is set to a large font in the editor, its line height is fixed in the size you set, resulting in line-to-line overlap.
Thank you for your reading. I believe you have some understanding of "Why not copy the content in Word directly into the editor of the website". Go ahead and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.