html_editor.ascx.cs
来自「文本编辑框-------------------简易」· CS 代码 · 共 49 行
CS
49 行
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class MyEditor_HTML_Editor : System.Web.UI.UserControl
{
protected string highlightCss = "border-right: 1px outset; border-top: 1px outset; border-left: 1px outset; border-bottom: 1px outset; background-color: whitesmoke";
public string HignlightCss
{
get {return highlightCss;}
set{ highlightCss=value;}
}
protected string nohighlightCss;
public string NohignlightCss
{
get { return nohighlightCss; }
set{ nohighlightCss=value;}
}
public string HtmlCode
{
get { return HtmlCodeField.Value; }
set {
HtmlCodeField.Value = value;
}
}
protected int height=200;
public int Height
{
get { return height; }
set { height = value-27; }
}
protected int width=400;
public int Width
{
get { return width; }
set { width = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?