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