zoukankan      html  css  js  c++  java
  • 用fckeditor(ckeditor)保存到数据库的HTML代码如何调用输出在前台(实用)

    答案1

    1.<%=htmltext%>2.Response.Write(htmltext);3.lable.Text=htmltext;

    答案4

    用Literal控件,Label会在内容的外面加一个<span></span>,不过也是可以的。Literal性能好些。

    答案5

    Literal
    用这个控件
    有个属性要设置一下,改成html,叫什么mode吧,你一个个试一下,这个控件的属性不多的

    答案6

    两种方法,能支援html格式数据绑定(含样式,布局,图片,标签):1.Literal控件,注意Mode="Transform"<asp:Literal
    ID="Literal1"
    runat="server"
    Mode="Transform"
    Text="<div>dd</div>"></asp:Literal>赋值:设置了它Mode属性,后台如下写就可以绑定html格式数据到前台:this.Literal1.Text=....(数据库读出的FCK数据);2.用div,span之类的html标签,属性runat="server":

  • 相关阅读:
    日志配置
    Mybaties核心配置文件
    配置3
    写了两个数据获得方式----费劲周折
    applicationContext
    配置2
    Django-缓存的配置
    RabbitMQ的工作模式
    centos下保留python2安装python3
    python位运算
  • 原文地址:https://www.cnblogs.com/101rico/p/2867509.html
Copyright © 2011-2022 走看看