weixin_45066533 2021-05-04 21:17 采纳率: 0%
浏览 23

网页里面的pdf如何下载

该网页源代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="/meol/styles/newstyle/baseCss/base.css" rel="stylesheet" type="text/css">




<link href="/meol/styles/newstyle/plugins/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">
<link href="/meol/styles/newstyle/curriculumBuilding/css/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/meol/styles/newstyle/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="/meol/common/js/treeTable.js"></script>
<link rel="stylesheet" href="/meol/styles/newstyle/plugins/jquery-ui/jquery-ui.min.css">
<link rel="stylesheet" href="/meol/styles/newstyle/plugins/jquery-ui/ui-custom.css">
<script type="text/javascript" src="/meol/styles/newstyle/plugins/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/meol/styles/main/js/fancyBox/source/jquery.fancybox.js"></script>
<script type="text/javascript">
//配置弹出层
$().ready(function () {
//固定大小的弹出层
if($("a[name='fancybox']").length>0){
$("a[name='fancybox']").fancybox({
'width': '80%',
'height': '95%',
'autoScale': false,
'autoSize' : false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
}


//弹出层大小自适应
if($("a[name='fancyboxAuto']").length>0){
$("a[name='fancyboxAuto']").fancybox({
'autoScale': false,
'autoSize' : true,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
}


//弹出层关闭时,父页面刷新
if($("a[name='fancyboxClose']").length>0){
$("a[name='fancyboxClose']").fancybox({
'autoScale': false,
'autoSize' : true,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'afterClose':function(){
window.location.reload();
}
});
}


//
/*if($("a[name='fancyboxAutoChild']").length>0){
$("a[name='fancyboxAutoChild']").fancybox({
'width' : '80%',
'height' : '80%',
'isChild': true,
'autoScale': false,
'autoSize' : true,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'afterClose':function(){
if(this.isChild){
$("#main-content").attr("src", $('#main-content').attr("src"));
}
}
});
}*/
});


function openDialogWin(target,url){
var pWin = parent.document;
$("#dialog",pWin).dialog({
bgiframe: true,
resizable: true, //是否可以重置大小
draggable: true, //是否可以拖动。
show: "fade",
hide: "fade",
autoOpen:true,
width:$(parent).width()*0.8,
height:$(parent).height()*0.9,
position:{at:"bottom"},
modal: true,
title:$(target).attr("title"),
open:function(event,ui){
$("#dialog iframe",pWin).attr("src",url);
},
close:function(event,ui){
$("#dialog",pWin).dialog('destroy');
}
});
}


</script>
</head>
<body>
<div class="course-build wrap">
















<!DOCTYPE html>
<html>
<head>
















<script type="text/javascript">
$(function(){
//使用jquery ui dialog
var width = $(window).width()*0.8;
var height = $(window).height()*0.9;
//绑定到菜单
$(".ajax-link").click(function(){
var alink = $(this);
$("#dialog").dialog({
bgiframe: true,
resizable: true, //是否可以重置大小
draggable: true, //是否可以拖动。
show: "fade",
hide: "fade",
autoOpen:true,
width:width,
height:height,
position:{at:"bottom"},
modal: true,
title:alink.text(),
open:function(event,ui){
$("#dialog iframe").attr("src",alink.attr("datasrc"));
},
close:function(event,ui){
$("#dialog").dialog('destroy');
}
});
});


//其他菜单
$("#othermenu").menu();
$("#othermenu").css("border","0")


//清空栏目
$("#cleancontent").click(function(){
if(window.confirm("您确定要清空该栏目内容吗?")){
$("#main-content-two").attr("src",$(this).attr("datasrc"));
}
});
});




</script>
</head>
<body>
<div id="dialog" style="display:none;width:100%">
<iframe scrolling="yes" height="100%" width="100%"></iframe>
</div>
<div id="ajax-content">
<iframe width="100%" id="main-content-two" name="resInfo" scrolling="no" frameborder="0" src="http://eol.scau.edu.cn/meol/buildless/resFolderViewList.do?folderid=148521&lid=1188343&columnId=145763"></iframe>
</div>






<script type="text/javascript">
$(function(){
$("#js-ajaxlink li").each(function(){
$(this).click(function(){
$(this).addClass('js-ajaxlink-cur').siblings('li').removeClass('js-ajaxlink-cur');
})
})
})
</script>
<script type="text/javascript">


/*window.onload = function(){
var iframe = document.getElementById("main-content-two");
var iframe_win = iframe.window || iframe.contentWindow;
if(iframe_win.frameSetHeight() != undefined){ // 判断包含的页面是否有这个函数
function reinitIframeB(){
var child_height = iframe_win.frameSetHeight();


iframe.height = child_height<400?400:child_height;
}
reinitIframeB();
window.setInterval("reinitIframeB()", 200);
}else{
var winHeight=$(window).height()-150;
function reinitIframeA(){
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight ;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight ;
var height = Math.min(bHeight, dHeight);
iframe.height = height<400?winHeight:height;
}catch (ex){}
}
reinitIframeA();
window.setInterval("reinitIframeA()", 200);
}
}*/


function getmctHeight(){
var ifm = document.getElementById("main-content-two");
var height = 0;
if(ifm!=null){
height = ifm.height;
}
try {
if (typeof ifm.contentWindow.frameSetHeight != 'undefined') {
height = ifm.contentWindow.frameSetHeight();
} else {
var bHeight = ifm.contentWindow.document.body.scrollHeight;
var dHeight = ifm.contentWindow.document.documentElement.scrollHeight;
var tHeight = Math.max(bHeight, dHeight);
if (height != tHeight) {
height = tHeight;
}
}
if (height < 400) {
height = 400;
}
ifm.height = height;
}catch(ex) { }
}
getmctHeight();
window.setInterval("getmctHeight()",400);


</script>
</body>
</html>


</div>
</body>
</html>

 

求助:怎么下载这里面的pdf

  • 写回答

1条回答 默认 最新

  • 波塞冬的祝福 2021-05-05 17:12
    关注

    右键下载呀

    评论

报告相同问题?

悬赏问题

  • ¥20 深信服vpn-2050这台设备如何配置才能成功联网?
  • ¥15 Arduino的wifi连接,如何关闭低功耗模式?
  • ¥15 Android studio 无法定位adb是什么问题?
  • ¥15 angular项目错误
  • ¥20 需要帮我远程操控一下,运行一下我的那个代码,我觉得我无能为力了
  • ¥20 有偿:在ubuntu上安装arduino以及其常用库文件。
  • ¥15 请问用arcgis处理一些数据和图形,通常里面有一个根据点划泰森多边形的命令,直接划的弊端是只能执行一个完整的边界,但是我们有时候会用到需要在有很多边界内利用点来执行划泰森多边形的命令
  • ¥30 在wave2foam中执行setWaveField时遇到了如下的浮点异常问题,请问该如何解决呢?
  • ¥750 关于一道数论方面的问题,求解答!(关键词-数学方法)
  • ¥200 csgo2的viewmatrix值是否还有别的获取方式