简体   繁体   English

HTML CSS如何忽略子样式?

[英]HTML CSS How to ignore child styles?

i'm having trouble setting wyziwyg editor in my site (tried at least 20 editors and every of them has same problem: pasting the text from word or even notepad creates unwanted CSS stylings (example: font-size, padding, even color). now I'm looking for a way to create master rule in wrapping div which will ignore every child stylings. 我在我的网站上设置wyziwyg编辑器时遇到麻烦(尝试了至少20个编辑器,每个编辑器都有相同的问题:从word甚至记事本中粘贴文本会产生不必要的CSS样式(例如:字体大小,填充,甚至颜色)。现在,我正在寻找一种在包装div中创建主规则的方法,该规则将忽略每个子样式。

Is there a way to do so? 有办法吗?

thanks everyone 感谢大家

TinyMCE for example has an Paste as plain text exactly for that. 例如,TinyMCE的“ 粘贴”就是纯文本格式 Check it out here: http://www.tinymce.com/ , click on Edit->Paste as plain text 在此处查看: http : //www.tinymce.com/ ,单击“ 编辑”->“粘贴为纯文本”

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

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