layer.js open 隐藏滚动条的例子
我就废话不多说了,直接上代码让大家看看吧!
$('img.echart-trand').click(function(){
varhost=$(this).data('host');
varrole=$(this).data('role');
console.log('host',host);
console.log(window.width);
varlabeltitle=host;
if(role==4)labeltitle=$(this).data('title');
varwidth=$(window).width()+"px";
varheight=$(window).height()+"px";
layer.open({
type:2,
title:labeltitle+'-投放关系图',
shadeClose:true,
move:false,
scrollbar:false,//父页面滚动条禁止
//maxmin:true,
area:[width,height],
//content:['/home/index/echartTest?role=2&wd='+host,'no'],//ifrma滚动条禁止显示页面
content:['/home/index/echartTest?role='+role+'&wd='+host],
});
});
以上这篇layer.jsopen隐藏滚动条的例子就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持毛票票。
热门推荐
10 小学毕业父母简短祝福语
11 幼儿生日祝福语模板简短
12 新娘妈妈的祝福语简短
13 邻居聚会祝福语大全简短
14 十条祝福语简短
15 给同学祝福语的简短
16 过年祝福语简短祝妈妈
17 祝女儿简短祝福语大全
18 恩师诗词祝福语简短大全