05-特效模板
7.0.3 特效模板
在本秘诀中,除非另作说明,否则将对所有示例都采用如下模板,为每个解决方案应用不同的jQuery片段:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Chapter 6</title>
<link rel="stylesheet" href="chapter6.css" type="text/css" />
<script src="jquery-latest.js" type="text/javascript"></script>
</head>
<body id="single">
<input type="button" id="animate" value="animate" />
<div class="box">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</body>
</html>
所有示例都可以从http://jquery-cookbook.com/examples/06/ 在线获得,包括各个秘诀组合而成的完整版本。