When typing in a new faceb开发者_如何学JAVAook comments box the height of the textbox changes according to how many lines the box has. What would be the best way to implement this?
Try elastic http://unwrongest.com/projects/elastic/
Perhaps this will help: https://github.com/jaz303/jquery-grab-bag/blob/master/javascripts/jquery.autogrow-textarea.js
The hight of comment box is standard one. You can only define the width of the comment box. Height will be automatically adjusted.
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="example.com" num_posts="2" width="600"></fb:comments>
精彩评论