debug
This commit is contained in:
@@ -322,6 +322,7 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
|
||||
/*列表*/
|
||||
.result{background: #fff; width: 1100px; overflow: hidden;}
|
||||
.search_tip{text-align: center;}
|
||||
.result ul{overflow: hidden;}
|
||||
.result ul li{padding: 30px 42px; border-bottom: 1px solid #f0f0f0; overflow: hidden;}
|
||||
.result ul li .book_cov{width: 120px; height: 150px; float: left;}
|
||||
|
||||
@@ -165,8 +165,6 @@ $(function () {
|
||||
var mod_desc = $('#book_desc');
|
||||
var height = mod_desc.height();
|
||||
var min_height = 54, max_height = 180;
|
||||
console.log(height)
|
||||
console.log(min_height)
|
||||
if (height > min_height) {
|
||||
mod_desc.css({height: min_height + 'px'}).next().show().on('click', function () {
|
||||
$(this).hide().next().show().end().prev().animate({height: (height < max_height ? max_height : height) + 'px'}, 200);
|
||||
@@ -179,8 +177,6 @@ $(function () {
|
||||
var mod_desc2 = $('#book_desc2');
|
||||
var height2 = mod_desc2.height();
|
||||
var min_height2 = 54, max_height2 = 180;
|
||||
console.log(height2)
|
||||
console.log(min_height2)
|
||||
if (height2 > min_height2) {
|
||||
mod_desc2.css({height: min_height2 + 'px'}).next().show().on('click', function () {
|
||||
$(this).hide().next().show().end().prev().animate({height: (height2 < max_height2 ? max_height2 : height2) + 'px'}, 200);
|
||||
|
||||
Reference in New Issue
Block a user