WEB开发网
开发学院网页设计JavaScript Prototype实战教程----11.Inserttion 阅读

Prototype实战教程----11.Inserttion

 2010-09-14 13:10:13 来源:WEB开发网   
核心提示:<script src="prototype.js"></script><div id="div1" style="font-size:20px;font-weight:bold"><hr>基线<hr>

<script src="prototype.js"></script>
<div id="div1" style="font-size:20px;font-weight:bold">
<hr>基线<hr>
</div>
<script>
  
new Insertion.After("div1", " After");
new Insertion.Bottom("div1", " Bottom");
new Insertion.Top("div1", " Top");
new Insertion.Before("div1", " Before");
</script>

Tags:Prototype 实战 教程

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接