我希望使用 iBox插件,但我不知道如何:
1) 禁用图像调整大小。
2) 修改背景的不透明度。
我试图修改 ibox.js 文件,我认为不透明度从第 330 行开始。
非常感谢!
最佳答案
1) disable image resize.
我没有测试它,但尝试将 can_resize:false 选项添加到 ibox.js 的第 755 行
_pub.html(img, {width: this.width, height: this.height, constrain: true, can_resize: false})
2) modify the opacity of the background.
你是说黑色覆盖层吗? IMO,你必须修改 bg.png 文件(见图像文件夹)
关于javascript - 修改 iBox javascript 文件中的不透明度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/732988/