⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tryit_view.asp@filename=trydhtml_form_color_button2

📁 W3Schools tutorial..web designing
💻 ASP@FILENAME=TRYDHTML_FORM_COLOR_BUTTON2
字号:
<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')">&nbsp;</td>
<td bgcolor="blue" onmouseover="changeColor('blue')">&nbsp;</td>
<td bgcolor="green" onmouseover="changeColor('green')">&nbsp;</td>
</tr></table>

<form>
<input id="x" type="button" value="Mouse over the colors">
</form>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -