📄 6-2.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<script language="JavaScript">
function insertText()
{
myPre.insertAdjacentText("AfterBegin","杜甫");
}
function insertHTML()
{
var mS='<font size="10px" color="blue">恨别</font>'
myPre.insertAdjacentHTML("BeforeBegin",mS);
}
</script>
<body leftmargin="60px">
<table>
<tr align="center">
<td>
<pre id="myPre">
<br>
洛城一别四千里,胡骑长驱五六年。
草木变衰行剑外,兵弋阻绝老江边。
思家步月清宵立,忆弟看云白日眠。
闻道河阳近乘胜,司徒急为破幽燕。
</pre>
<form>
<input type="button" value=" 诗 名 " onclick="insertHTML()">
<input type="button" value=" 诗 人 " onclick="insertText()">
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -