|
@@ -197,14 +197,14 @@ function downLoadFile() {
|
|
// });
|
|
// });
|
|
// }
|
|
// }
|
|
function adjustWidth() {
|
|
function adjustWidth() {
|
|
- var wt = window.innerWidth;
|
|
|
|
|
|
+ var wt = window.innerWidth || document.documentElement.clientWidth;
|
|
console.log('wt',wt)
|
|
console.log('wt',wt)
|
|
$(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
|
|
$(".titleH2").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
|
|
$("pre").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
|
|
$("pre").width(wt- 0.2*wt -33 - 200 - 17 - 40 -15 + 'px')
|
|
}
|
|
}
|
|
|
|
|
|
function adjustHeight() {
|
|
function adjustHeight() {
|
|
- var ht = window.innerHeight;
|
|
|
|
|
|
+ var ht = window.innerHeight || document.documentElement.clientHeight;
|
|
$(".content").height(ht - 145 + "px");
|
|
$(".content").height(ht - 145 + "px");
|
|
}
|
|
}
|
|
$(window).on('resize', function(){
|
|
$(window).on('resize', function(){
|