window.getComputedStyle() returns null inside an iframe with display: none
来源:互联网 发布:大班美工 剪纸花瓣 编辑:程序博客网 时间:2024/06/05 05:48
<script type="text/javascript">
if (/firefox/i.test(navigator.userAgent)){
window.oldGetComputedStyle = window.getComputedStyle;
console.log("a");
window.getComputedStyle = function (element, pseudoElt) {
var t = window.oldGetComputedStyle(element, pseudoElt);
console.log(t);
if (t === null) {
return {
getPropertyValue: function(){}
};
} else{
return t;
}
};
}
</script>
if (/firefox/i.test(navigator.userAgent)){
window.oldGetComputedStyle = window.getComputedStyle;
console.log("a");
window.getComputedStyle = function (element, pseudoElt) {
var t = window.oldGetComputedStyle(element, pseudoElt);
console.log(t);
if (t === null) {
return {
getPropertyValue: function(){}
};
} else{
return t;
}
};
}
</script>
0 0
- window.getComputedStyle() returns null inside an iframe with display: none
- window.getComputedStyle
- Web Service That Returns An Array of Objects With KSOAP
- iframe display:none 自适应 需要判断src加载情况
- Dialog throwing "Unable to add window — token null is not for an application” with getApplication()
- display:'none'与display:''
- 关于引用iframe下的页面时出现TypeError: G.getComputedStyle(...) is null错误
- CFReadStreamCopyProperty() returns NULL?
- geoCoder.getFromLocationName returns null
- getActionBar() returns null
- RCP: getActiveWorkbenchWindow() returns null
- getResourceAsStream returns null
- getContentResolver().insert returns null
- window.getComputedStyle详解
- 奇怪的safari:0像素的iframe不能被display:none的div圈住隐藏
- iframe用display:none隐藏后,仍然能产生一次有效的访问
- style="display:none"
- .css("display","none");
- jsoup api 用法
- zabbix安装部署
- 我有博客啦!
- Managing Audio Playback之Controlling Your App’s Volume and Playback
- IntelliJ IDEA生成注册码Java代码
- window.getComputedStyle() returns null inside an iframe with display: none
- Git学习日记2
- phpcms v9二次开发及使用中各种问题解决方案(一)
- 使用MySQL
- 2558. 【NOIP2011模拟9.9】过河问题 (Standard IO)
- Docker学习日记1
- 程序死机现象原因分析
- CUDA学习日记1
- 怎样查看oracle当前的连接数