案例:XML案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
#typing
5
{
6
behavior:url(/example/xmle/xmle_typing.htc);
7
font-family:'courier new';
8
}
9
</style>
10
</head>
11
12
<body>
13
<span id="typing" speed="100">IE5 introduced DHTML behaviors. Behaviors are a way to add DHTML functionality to HTML elements with the ease of CSS.<br /><br />How does behaviors work?<br />By using XML we can link behaviors to any element in a web page and manipulate that element.</p>
14
</span>
15
</body>
16
</html>
17