layui滑动条如何隐藏
时间:2022-02-11 17:39
layui滑动条隐藏的方法:首先打开相应代码文件;然后通过“content: ['/home/index/echartTest?role=2&wd='+host,'no']”方法禁止ifrma滚动条显示即可。 本教程操作环境:windows7系统、layui2.5.6版,该方法适用于所有品牌电脑。 推荐:《layUI教程》 layer.js open 隐藏滚动条 以上就是layui滑动条如何隐藏的详细内容,更多请关注gxlsystem.com其它相关文章!$('img.echart-trand').click(function() {
var host = $(this).data('host');
var role = $(this).data('role');
console.log('host',host);
console.log(window.width);
var labeltitle = host;
if(role==4)labeltitle = $(this).data('title');
var width = $(window).width() + "px";
var height = $(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],
});
});