android webview epub,webView的加载时EPUB3内容

我工作的读者,我们用对epub2工作,我使用.css文件上分页影响工作忽略CSS。 我最近收到了一个ePub 3文件,它不遵守我提供的css规则,虽然它在玩Play Books android应用程序时尝试正确。

请注意,我已经操纵相关的Web视图,如几大特点:

testWV.getSettings().setUseWideViewPort(true);

testWV.getSettings().setLoadWithOverviewMode(true);

,这是使用的寻呼CSS这为工程前面提到完美的epub2文件

html {

height:heightplaceholderpx; //set dynamically depending on phone screen size

width:100%;

}

body {

margin:0px;

padding:0px;

width:100%;

pointer-events: none;

}

#viewer {

width:widthplaceholderpx;

height:heightplaceholderpx;

}

#book {

width:widthplaceholderpx;

height:heightplaceholderpx;

margin-left:50px;

margin-right:50px;

margin-top:10px;

-webkit-column-count:auto;

-webkit-column-width:widthplaceholderpx;

-webkit-column-gap:100px;

text-align:justify;

}

.h {

margin-top:60px;

margin-left:100px;

margin-right:100px;

}

img {

max-width: 100%;

height:auto;

}

请请注意,这是我如何整合css文件:

headplaceholder //the header extracted from the xhtml file of the book

bodyplaceholder //the body extracted from the xhtml file of the book

2017-09-18

coder

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值