ホームページ  >  記事  >  ウェブフロントエンド  >  ONMOUSEOVER と ONMOUSEOUT を使用して HTML_html/css_WEB-ITnose の背景色または背景画像を変更する方法

ONMOUSEOVER と ONMOUSEOUT を使用して HTML_html/css_WEB-ITnose の背景色または背景画像を変更する方法

WBOY
WBOYオリジナル
2016-06-24 11:54:482401ブラウズ

1. onmouseout onmouseover を使用して画像間を変換します:

2.onmouseover onmouseout テキストの背景色を変更します:

onmouseout="style.backgroundColor='# bbb'" bgcolor="#bbb">テキスト

3..onmouseover onmouseout テキストを背景画像に変更します:

onMouseOut="this.background='2.gif'" background="2.gif">text

< 画像ソース="img1" onmouseover="this.src='img2'" onmouseout="this.src='img1'">

2.onmouseover onmouseout テキストの背景色の変更:

onmouseout="style.backgroundColor='#bbb'" bgcolor="#bbb">テキスト

3. .onmouseover onmouseout テキストを背景画像に変更します:

onMouseOut="this.background=' 2.gif '"background="2.gif">text

2.onmouseover onmouseout テキストの背景色を変更します:

onmouseout=" style.backgroundColor='#bbb'" bgcolor="#bbb">Text

3..onmouseover onmouseout テキストを背景に変更します:

onMouseOut="this.background='2.gif'" background="2.gif">テキスト

<画像src="img1" onmouseover="this.src='img2'" onmouseout="this.src='img1'">

2.onmouseover onmouseout テキストの背景色の変更:

onmouseout="style.backgroundColor='#bbb'" bgcolor="#bbb">テキスト< ;/div>

3 ..onmouseover onmouseout テキストを背景画像に変更します:

onMouseOut= "this.background='2. gif'"background="2.gif">テキスト

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。