tryit_view.asp@filename=trydhtml_form_color_textarea
来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRYDHTML_FORM_COLOR_TEXTAREA 代码 · 共 36 行
ASP@FILENAME=TRYDHTML_FORM_COLOR_TEXTAREA
36 行
<html>
<head>
<script type="text/javascript">
function newColor(color)
{
document.getElementById('x').style.background=color;
}
</script>
</head>
<body>
<p>This example demonstrates how to change
the background color of a textarea.</p>
<p>Mouse over the three colored table cells,
and the textarea will change color:</p>
<table width="100%"><tr>
<td bgcolor="red" onmouseover="newColor('red')"> </td>
<td bgcolor="blue" onmouseover="newColor('blue')"> </td>
<td bgcolor="green" onmouseover="newColor('green')"> </td>
</tr></table>
<form>
<textarea id="x" rows="5" cols="20">
This example can not be edited
because our editor uses a textarea
for input,
and your browser does not allow
a textarea inside a textarea.
</textarea>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?