<div class="codetitle"> <span><a style="CURSOR: pointer" data="76749" class="copybut" id="copybut76749" onclick="doCopy('code76749')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code76749"> <br> <br><meta charset="utf-8"> <br><style> <BR>.ppp{ <BR>width:600px; <BR>height:300px; <BR>background-color:pink; <BR>} <BR></style> <br><input type="text" id="ttt" name="" value="" maxlength="" placeholder=""> <br><br><br> <br><br><div class="ppp"></div> <!-- --> <br><br><script src="jquery-1.7.2.min.js"></script> <br><script> <BR>$("document").ready(function(){ <BR>$("#ttt").keyup( <BR>function(){$(".ppp:first").html(this.value)} <BR>) <BR>}); <BR></script> <br> <br> </div>