tryit_view.asp@filename=trydhtml_form_color_button2
来自「W3Schools tutorial..web designing」· ASP@FILENAME=TRYDHTML_FORM_COLOR_BUTTON2 代码 · 共 28 行
ASP@FILENAME=TRYDHTML_FORM_COLOR_BUTTON2
28 行
<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 a button.</p>
<p>Mouse over the three colored table cells, and the text color will change:</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="button" value="Mouse over the colors">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?