$('textarea.textarea').each(function(i) { $(this).height(this.scrollHeight); });
参考
z-index只有在设置了position为relative,absolute,fixed时才会有效。