input text,textarea 自适应高度之超级简单的解决方案

<script>
    $(document).ready(function () {
        $("textarea").each(function (i, e) {
            var td = e.parentNode;
            var heght = $(td).height();
            $(e).height(heght);
        });
    });
</script>

猜你喜欢

转载自blog.csdn.net/assiduous_me/article/details/82262160
今日推荐