CKeditor设置不了高度

qinying_cc 2009-12-01 05:28:02
<td style="width: 600px; height:600px;" valign="top">
<textarea class="ckeditor" id="Txt_content" runat="server" name="txtContent" style="height:600px; width:100%;"></textarea>
</td>

我想给它设置高度,但是网上说在config.js里设置,因为还有其它页面使用了这个编辑器,所以我只想把这一个页面里高度修改一下。我如上设置了高度,没有用,大家帮帮忙
...全文
1381 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hyx1209 2011-12-13
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 wang2824 的回复:]
不是在textarea标签中设置的。
var editor=CKEDITOR.replace('editor1',{height:100});
[/Quote]

这个方法可以
wang2824 2010-03-16
  • 打赏
  • 举报
回复
不是在textarea标签中设置的。
var editor=CKEDITOR.replace('editor1',{height:100});
qinying_cc 2009-12-02
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 wuyq11 的回复:]
<textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">
  </textarea>
或者
<textarea cols="80" id="editor1" name="editor1" rows="10">
       
    </textarea>
  <script type="text/javascript">
      CKEDITOR.replace( 'editor1' );
  </script>

[/Quote]
设置了rows了,不行
wuyq11 2009-12-01
  • 打赏
  • 举报
回复
<textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10">
</textarea>
或者
<textarea cols="80" id="editor1" name="editor1" rows="10">

</textarea>
<script type="text/javascript">
CKEDITOR.replace( 'editor1' );
</script>
huming_h 2009-12-01
  • 打赏
  • 举报
回复
上面不是textarea控件吗?

62,254

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧