銘心

在后臺發(fā)布編輯器里插入代碼,代碼會自動解析

  今天我在后臺編輯時發(fā)現(xiàn)文章字段都沒有什么問題,添加html等代碼后會自動的解析,無論怎么樣都會解析出來,跟后臺的所見所得的設(shè)計不太一樣
#1樓
發(fā)帖時間:2013-7-5   |   查看數(shù):0   |   回復(fù)數(shù):4
空城
恩,你是代碼在HTML模式下插入的代碼嗎?不過你想要什么樣的結(jié)果呢?
2013-7-5 #2樓
銘心

首先假如我要插入以下html的操作



前臺的顯示是


我插入的html代碼(只是個例子)是
  
<div id="menu" role="navigation">
	<div class="width">
		<table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
			<tr>
				<td class="left"></td>
				<td class="logo"><a href="http://polarizers.cn" title="TWCMS官方論壇"><span id="logo"></span></a></td>
				<td class="center">
					
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-2.htm" >程序發(fā)布</a>	
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-45.htm" >主題風(fēng)格</a>	
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-46.htm" >插件資源</a>	
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-43.htm"  class="checked">BUG反饋</a>	
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-44.htm" >發(fā)展建議</a>	
										<span class="sep"></span>
					<a href="http://polarizers.cn/bbs/forum-index-fid-47.htm" >求助討論</a>	
										<span class="sep"></span>
					<a href="./" >論壇新帖</a>
					
				</td>
				<td class="center2">
					
										<form action="http://polarizers.cn/bbs/search-index.htm" target="_blank" id="search_form" method="post">
						<div id="search"><input type="text" id="search_keyword" name="keyword" /></div>
					</form>


我想要的效果是前臺不會解析,顯示一下類似的樣式

2013-7-5 #3樓
空城
這個前臺模板,還要改模板。多加載css和js才能實現(xiàn)。
2013-7-5 #4樓
銘心
嗯嗯。我研究下
2013-7-6 #5樓
游客組