js/jquery计算非文本标签中的内容行数

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

 

posted @ 2018-02-05 18:18  rommel0618  阅读(397)  评论(0)    收藏  举报