📄 simpleedit.htm
字号:
<script type ="text/javascript" src="../edit/edit.js">
</script>
<div id="toolbar" style="width: 292px; height: 9px; border-right: darkgray thin solid; border-top: darkgray thin solid; border-left: darkgray thin solid; border-bottom: darkgray thin solid; vertical-align: top; ">
<img src="../edit/image/UI_bold.gif" onclick ="format('bold');" alt="加粗" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_italic.gif" onclick ="format('italic');" alt="字体倾斜" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_underline.gif" onclick ="format('underline');" alt="下划线" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_leftalign.gif" onclick ="format('Justifyleft');" alt="左对齐" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_centeralign.gif" onclick ="format('Justifycenter');" alt="居中" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_rightalign.gif" onclick ="format('JustifyRight');" alt="右对齐" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/gray_blank.gif" />
<img src="../edit/image/UI_fontcolor.gif" onclick ="changeColor('ForeColor');" alt="字体颜色" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/UI_backcolor.gif" onclick ="changeColor('backColor');" alt="背景色" onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
<img src="../edit/image/ui_link.gif" onclick ="CreateLink()" alt="插入超链接"; onmouseover="this.style.backgroundColor='limegreen'" onmouseout="this.style.backgroundColor=''" />
</div>
<div id="editor" runat ="server" contenteditable="true" style="width: 290px; height: 212px; border-right: linen thin solid; padding-right: 0px; border-top: linen thin solid; padding-left: 0px; padding-bottom: 0px; margin: 0px; border-left: linen thin solid; padding-top: 0px; border-bottom: linen thin solid; overflow: auto; font-size: 11pt; text-indent: 20pt; line-height: 140%; font-family: 宋体, 楷体_GB2312, 'Times New Roman'; letter-spacing: normal; text-align: left;" >
</div>
<input id="Checkbox1" style="vertical-align: top; width: 18px"
title="view source" type="checkbox" onclick="viewHtml();" name="viewHtmlCheck" value=""/>显示html代码
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -