案例:CSS案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<head>
3
<style type="text/css">
4
#typing
5
{
6
behavior:url("/example/csse/behave_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 />
14
How does behaviors work?<br />By using XML we can link behaviors to any element in a web page and manipulate that element.</p>
15
</span>
16
</body>
17
</html>
18