所以我一直在尝试将插件应用到 Body Element 并且由于某种原因它只是不起作用.. 我尝试过的事情:
$(function() {
$('body, html').slimScroll({
size: '8px',
width: '100%',
height: '100%',
color: '#ff4800',
allowPageScroll: true,
alwaysVisible: true
});
});
$(function() {
$('#body').slimScroll({
size: '8px',
width: '100%',
height: '100%',
color: '#ff4800',
allowPageScroll: true,
alwaysVisible: true
});
});
有谁知道我做错了什么?提前感谢您的回答
“如果我无法控制正文标签怎么办?我将模板嵌入到第 3 方网站中?所以正文没有 id 标签,它只有 view-source:avatars.imvu.com/LadyKonstantine”