<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript" src="pdfobject.js"></script>
<script type="text/javascript">
window.onload = function (){
var success = new PDFObject({ url: "book01.pdf" ,pdfOpenParams: { scrollbars: '0', toolbar: '0', statusbar: '0'}}).embed("pdf1");
};
</script>
</head>
<body><div data-role="page">
<div data-role="header">
<h1>欢迎访问我的主页</h1>
</div><div data-role="content">
<p>现在我已经成为一名移动开发者!</p><div id="pdf1" style="width:700px; height:600px;">It appears you don't have Adobe Reader or PDF support in this web browser. <a href="book01.pdf">Click here to download the PDF</a></div>
</div><div data-role="footer">
<h1>页脚文本</h1>
</div>
</div></body>
</html>上面是找了个js 插件,但是手机上不显示,电脑上可以
<html>
<head>
<link rel="stylesheet"
href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script
src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<script type="text/javascript" src="pdfobject.js"></script>
<script type="text/javascript">
window.onload = function (){
var success = new PDFObject({ url: "book01.pdf" ,pdfOpenParams: { scrollbars: '0', toolbar: '0', statusbar: '0'}}).embed("pdf1");
};
</script>
</head>
<body><div data-role="page">
<div data-role="header">
<h1>欢迎访问我的主页</h1>
</div><div data-role="content">
<p>现在我已经成为一名移动开发者!</p><div id="pdf1" style="width:700px; height:600px;">It appears you don't have Adobe Reader or PDF support in this web browser. <a href="book01.pdf">Click here to download the PDF</a></div>
</div><div data-role="footer">
<h1>页脚文本</h1>
</div>
</div></body>
</html>上面是找了个js 插件,但是手机上不显示,电脑上可以
解决方案 »
- Your peoject contains error(s),please fix them before running your application
- NDK中Socket使用connect时报错:Address family not supported by protocol
- 如何在判断在一个Activity结束后,自动启动一个新的Activity
- Android控制台命令是如何实现的?
- eclipse 集成 android 开发环境,创建新项目出问题?
- 服务器网络测试
- 手机重力加速器控制鼠标指针移动的问题
- BaiduMap 画图出现了问题,了解View的高手们求解答!!!
- 安卓上有什么方法可以记录大转盘每轮开出的数字
- 4个edittext切换焦点怎么做?
- 怎么把同一数据源里的数据添加到不同的listView里面
- android fragment +viewpage 白屏
电脑能用浏览器看PDF是因为 浏览器第三方插件