我工作的读者,我们用对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