2017-07-27 24 views

回答

1

您將需要使用javascript/jquery來獲取元素的高度,然後相應地添加或刪除類。例如:

if($('textarea').height() == 137) { 
    $('textarea').addClass('className'); 
}else{ 
    $('textarea').removeClass('className'); 
} 
相關問題