Authored by 郭成尧

del-ellipsis

... ... @@ -7,19 +7,13 @@
let $ = require('yoho-jquery'),
tip = require('plugin/tip'),
loading = require('plugin/loading'),
lazyLoad = require('yoho-jquery-lazyload'),
ellipsis = require('yoho-mlellipsis');
lazyLoad = require('yoho-jquery-lazyload');
let stopLoading = false,
page = 1;
require('./list-common');
ellipsis.init();
function massageAJAX(pageData) {
let $this, $title, $cont;
loading.showLoadingMask();
$.ajax({
type: 'GET',
... ... @@ -39,16 +33,6 @@ function massageAJAX(pageData) {
$('.collocation-list').append(data);
// 限制标题字数
$('.cont-area').each(function() {
$this = $(this);
$title = $this.find('.title');
$cont = $this.find('.cont-txt');
$title[0].mlellipsis(2);
$cont[0].mlellipsis(2);
});
loading.hideLoadingMask();
lazyLoad($('img.lazy'));
... ...
... ... @@ -733,6 +733,15 @@
padding: 30px;
}
.cont-area > a > .title {
width: 100%;
box-sizing: border-box;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.cont-txt {
font-size: 28px;
line-height: 46px;
... ...
... ... @@ -15,6 +15,15 @@
padding: 30px;
}
.cont-area > a > .title {
width: 100%;
box-sizing: border-box;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.cont-txt {
font-size: 28px;
line-height: 46px;
... ...