js/jquery计算非文本标签中的内容行数 //高度/行高=文本行数 var lines = Math.round($(".project-name").height()/parseFloat($(".project-name").css('line-height')));