📄 tryit_view.asp@filename=trydhtml_form_color2
字号:
<html>
<head>
<script type="text/javascript">
function changeColor(color)
{
document.getElementById('x').style.color=color;
}
</script>
</head>
<body>
<p>This example demonstrates how to change the text color of an input field.</p>
<p>Mouse over the three colored table cells, and the text will change color:</p>
<table width="100%"><tr>
<td bgcolor="red" onmouseover="changeColor('red')"> </td>
<td bgcolor="blue" onmouseover="changeColor('blue')"> </td>
<td bgcolor="green" onmouseover="changeColor('green')"> </td>
</tr></table>
<form>
<input id="x" type="text" value="Mouse over the colors" size="20">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -