自动变换的背景颜色 代码:
<div style="width: 700px; height: 60px; color: rgb(250, 170, 0); font-size: 30pt; background-color: rgb(90, 90, 90);" onmouseover="this.style.backgroundColor='#00ff00'" onmouseout="this.style.backgroundColor='#0000FF'" align="center">自动变换的背景颜色</div> 简析:
本网页可以变换三种背景颜色。打开网页时,是灰色的背景颜色;光标指向文字时,显示绿色的背景颜色;光标离开文字时,显示蓝色的背景颜色。
“春天没来”编撰
2013年6月19日于北京
|
|