Mouseover Highlight
下面的 HTML 文件中有一个 <style> 元素,它为 <h1> 元素界说了一个行为:
<html> <head> <style type="text/css"> h1 { behavior: url(behave.htc) } </style> </head> <body> <h1>Mouse over me!!!</h1> </body> </html>
下面是 XML 文档 "behave.htc":
<attach for="element" event="onmou征采引擎优化ver" handler="hig_lite" /> <attach for="element" event="onmou网站排名ut" handler="low_lite" /> <script type="text/javascript"> function hig_lite() { element.style.color='red'; } function low_lite() { element.style.color='blue'; } </script>
behavior 文件征求了针对元素的 JavaScript 和 变乱句柄。
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/jiqiao/j53251.shtml