编辑您的代码:
查看结果:
<!DOCTYPE html> <html> <body> <h3>演示如何创建 QUOTE 元素</h3> <p>点击按钮来创建引用来源为 wwf.org 的 QUOTE 元素。</p> <button onclick="myFunction()">试一下</button> <script> function myFunction() { var x = document.createElement("QUOTE"); var t = document.createTextNode("Our goal is to build a future where people live in harmony with nature."); x.setAttribute("cite", "http://www.wwf.org"); x.appendChild(t); document.body.appendChild(x); } </script> </body> </html>
查看结果:
系统帮助
|
给我留言
|
收藏本站
Copyright © 2005-2008
www.cnn84.com
All Rights Reserved Ver:2.0
桂公网安备45122402000102号
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南
晚上好!CNN84祝你今晚玩的愉快!天天都有新收获!