<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> <br> <br>.ppp{ <br>寬度:600px; <br>高度:300px; <br>背景顏色:粉色; <br>} <br>風格> <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>腳本> <br> <br> </div>