源代碼
點擊運行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>教程</title> </head> <body> <h1 onmouseover="style.color='red'"onmouseout="style.color='black'">將鼠標移至文部上</h1> </body> </html>
運行結果