<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><html> <br><meta charset="utf-8" /> <br> <br>.ppp{ <br>너비:600px; <br>높이:300px; <br>배경색:분홍색; <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><스크립트> <br>$("document").ready(function(){ <br>$("#ttt").keyup( <br>function(){$(".ppp:first").html(this. 값)} <br>) <br>}); <br></script> <br></html> <br> </div>