作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我有一个图像 javascript 按钮,它在 chrome 上不起作用,
你能帮帮我吗提前致谢!
代码如下:
我只是隐藏弹出窗口:
编辑:
为了关闭我正在使用这个函数只是隐藏它
function hideBulle() {
$("bullepopup").style.display="none";
hideoverlay();
}
下面是创建一个盒子和这个按钮的代码
function showBulle(obj) {
showoverlay();
coo = $("content").getPosition();
$("bullepopup").style.width = "555px";
$("bullepopup").style.height = "555px";
$("bullepopup").position({x: (coo.x+((650-555)/2)), y: (coo.y+(440-250)/2)});
$("bullepopup").style.display="";
$("bullepopup").set('html','');
new Element('img',{src:'images/br588.gif',styles: {float:'right',cursor:'pointer'},
events: {
click: function(){
hideBulle();
}
}
}).inject($('bullepopup'));
new Element('br').inject($('bullepopup'));
new Element('div',{html:obj.get('html')}).inject($('bullepopup'));
}
function hideBulle() {
$("bullepopup").style.display="none";
hideoverlay();
}
提前致谢!
最佳答案
用 chrome 开发工具检查你的 css,你的按钮中应该有一些框架
删除或更改它
你也可以试试这段代码
window.open('', '_self', ''); //bug fix
window.close();
关于javascript - 窗口关闭(); javascript 代码不适用于 chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12680033/
我是一名优秀的程序员,十分优秀!