//高度/行高=文本行数 var lines = Math.round($(".project-name").height()/parseFloat($(".project-name").css('line-height')));