镇安县住房和城乡建设部网站,有账号和密码怎么进公司网站后台,网站总浏览量,网站设计报价怎么做大致效果如下图#xff0c;只考虑垂直方向。长图可以通过滚动条看#xff0c;短图居中效果#xff0c;布局合理html代码(vue作用域内)#xff1a;css代码#xff1a;.box{height: 100%;//如高度等于网页高度overflow: auto;display: flex;flex-direction: column;justify-…大致效果如下图只考虑垂直方向。长图可以通过滚动条看短图居中效果布局合理html代码(vue作用域内) css代码.box{height: 100%;//如高度等于网页高度overflow: auto;display: flex;flex-direction: column;justify-content: space-around;}.swiper-slide.long{justify-content: flex-start;}js代码(vue作用域内使用jquery)methods: {checkHeight:function (event) {var el$(event.currentTarget);el.parent().removeClass(long);//this.CH 为网页高度if(el.height()this.CH){el.parent().addClass(long);}}}以上就是本文的全部内容希望对大家的学习有所帮助也希望大家多多支持我们。时间 2017-10-16