📄 19.7 textarea显示记事本文件的内容.htm
字号:
<HTML XMLNS:IE>
<head>
<title>标题页</title>
</head>
<body>
<SCRIPT>
function onDownloadDone(s) {
content.value=s; //设置文本框的内容
}
</SCRIPT>
<textarea name="content" cols=30 rows=20></textarea>
<div ID="oDownload" STYLE="behavior:url(#default#download)" />
<input type=file name='myfile'>
<input type=button value="打开" onclick="oDownload.startDownload(myfile.value,onDownloadDone)">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -