3 javascript css html5 mootools
我有一个图像javascript按钮,它不适用于chrome,
你能帮我提前谢谢!
这是代码:
我只是隐藏了弹出窗口:
编辑:
关闭我使用此功能只是隐藏它
function hideBulle() {
$("bullepopup").style.display="none";
hideoverlay();
}
Run Code Online (Sandbox Code Playgroud)
这是创建一个框和此按钮的代码
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();
}
Run Code Online (Sandbox Code Playgroud)
提前致谢!
小智 6
用chrome developer工具检查你的css,你的按钮应该有一些框架
删除或更改它
你也可以尝试这个代码
window.open('', '_self', ''); //bug fix
window.close();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4225 次 |
| 最近记录: |