diff --git a/css/index.css b/css/index.css index 4b1f7f8..ff59781 100644 --- a/css/index.css +++ b/css/index.css @@ -442,6 +442,10 @@ a:active{ display: block; width: 100%; } +.category__item .imgcontainer{ + background-size: cover; + height:150px; +} .business-effect .e-img-r { position: absolute; top: 0; right: -100%; width: 100%; height: 100%; -webkit-transition: all 0.5s; -o-transition: all 0.5s; -moz-transition: all 0.5s; transition: all 0.5s; } .business-effect .e-img-r img { display: block;height: 100%; width: 100%; } .transition-3{ @@ -543,7 +547,7 @@ a:active{ .middleContent .imgcontainer img{ width:100%; /* height:100%; */ - height: 140px + /* height: 140px */ } .middleContent .contenttitle{ color:#000000; diff --git a/js/index.js b/js/index.js index 0ee7c00..6408a75 100644 --- a/js/index.js +++ b/js/index.js @@ -340,7 +340,8 @@ $(function(){ }, success: function (res) { let html='' - res.data.data.forEach((item,index)=>{ + let datalist = res.data.data.reverse() + datalist.forEach((item,index)=>{ html+=`` }) $('.select').append(html) @@ -368,8 +369,8 @@ function news01_render(categoryId){ let data = res.data.data; data.forEach((item,index)=>{ html+=`