|
@@ -106,6 +106,7 @@ function getInfomation() {
|
|
|
|
|
|
addLinkClickEvent();
|
|
|
adjustHeight();
|
|
|
+ adjustWidth()
|
|
|
$('.content img').bind('contextmenu', function(){
|
|
|
return false
|
|
|
})
|
|
@@ -195,6 +196,12 @@ function downLoadFile() {
|
|
|
// saveAs(blob, filename);
|
|
|
// });
|
|
|
// }
|
|
|
+function adjustWidth() {
|
|
|
+ var wt = window.innerWidth;
|
|
|
+ console.log('wt',wt)
|
|
|
+ $(".titleH2").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() {
|
|
|
var ht = window.innerHeight;
|
|
@@ -202,6 +209,7 @@ function adjustHeight() {
|
|
|
}
|
|
|
$(window).on('resize', function(){
|
|
|
adjustHeight()
|
|
|
+ adjustWidth()
|
|
|
})
|
|
|
|
|
|
|