简体   繁体   English

删除中的默认样式 <Pre> 在WordPress的帖子中标记

[英]Remove the default style in <Pre> tag in wordpress post

I pasted a microsoft word post into my wordpress post and after posting the post has a grey background and a border around it. 我将一个Microsoft Word帖子粘贴到了我的wordpress帖子中,发布后帖子的背景为灰色,并带有边框。 Why did it occur and how to remove this so that this does not happen every time I paste into my wordpress post. 为什么会发生这种情况,以及如何删除它,以免每次我粘贴到wordpress帖子中时都不会发生这种情况。

在此处输入图片说明

Word puts a bunch of markup into your text. Word在您的文本中添加了一堆标记。 If you look at the plain text version, you'll see it's a mess. 如果您查看纯文本版本,将会发现它是一团糟。 Use something like https://wordpress.org/plugins/mammoth-docx-converter/ to upload your Word docs to WP. 使用https://wordpress.org/plugins/mammoth-docx-converter/之类的东西将您的Word文档上载到WP。 It's not perfect, but gets you cleaner markup. 它不是完美的,但是可以使您的标记更清晰。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM