2011-05-13 4 views

답변

1

css 파일로 이동하여 color 속성이있는 클래스를 추가하십시오. 그런 다음 HTML 텍스트 편집기로 이동하여이 클래스를 참조하십시오. 이것은 몇 가지 코드입니다. HTML 텍스트 편집기에서

.textColor 
    { 
     color:Red; 
    } 

: 스타일 시트에서

<h1 class="textColor"> the text is in red</h1> 

편집

최상의 방법

당신은을 사용할 수 있습니다 Web.config/n2/edit 태그에 다음 코드를 입력하여 tinyMCE에서 forecolor를 지정하십시오.

<tinyMCE enabled="true"> 
     <settings> 
      <add key="theme_advanced_buttons1" value="bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect"/> 
      <add key="theme_advanced_buttons2" value="cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor"/> 
      <add key="extended_valid_elements" value="hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],pre[class],code[class],iframe[src|name|class|style|frameborder]"/> 
      <add key="theme_advanced_disable" value="help,paste,emotions,iespell,styleprops"/> 
      <add key="relative_urls" value="true"/> 
      <add key="apply_source_formatting" value="true"/> 
     </settings> 
     </tinyMCE>