【问题标题】:TinyMCE and id css ignoredTinyMCE 和 id css 被忽略
【发布时间】:2015-06-24 15:44:33
【问题描述】:

有些代码胜过千言万语:

脚本:

tinyMCE.init({
  mode : "textareas",
  content_css : "moncss.css",

            [...]       });

HTML:

<div id="header">
     <div class="text1" style="display:none;">
        <textarea name="text" rows="4">Titre</textarea>    
     </div> 
</div>

CSS

 h1
 {  
   color:green;
 }
 #header h1
 {
   color:red;
 }

在我的 tinymce 文本区域中,h1 是绿色而不是红色。为什么 ?如何解决这个问题?

【问题讨论】:

    标签: javascript jquery html css tinymce


    【解决方案1】:

    我找到了解决办法:

    使用内联编辑:

    脚本:

    tinyMCE.init({
    
     selector: "div.header",
     inline: true,
     content_css : "moncss.css",
     [...]       });
    

    【讨论】:

      猜你喜欢
      • 2016-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-22
      • 1970-01-01
      • 1970-01-01
      • 2012-11-06
      • 1970-01-01
      相关资源
      最近更新 更多