使用369平台使用Html5快速开发的新闻客户端,在这篇android之使用Html5开发的基础上。
实验apk:http://dev.369cloud.com/down/compile/15577
看看效果
都是使用封装好的代码,官方文档有说明,数据库在建立时使用了主外键的方式,这个也提供了模式 OTO
html 的body部分分为了上中下三部分
<body>
<div id="all" class="container box box-ov">
<div id="header" class="c-wh box c-307 box-ac box-pc" style="height:3em;">
<div id="titleName" class="box-f1 tx-c t-wh font2">新闻</div>
</div>
<div id="content" class="box-f1 c-wh">
</div>
<div id="footer" class="box box-s box-pc c-wh t-gra">
<div id="news" class="footerBtn box box-f1 box-ac box-pc padd-tb t-307">
<!--fa在线图标库 http://fontawesome.dashgame.com/-->
<span class="fa fa-newspaper-o font2"></span>
<span class="padd-l font1">新闻</span>
</div>
<div id="pic" class="footerBtn box box-f1 box-ac box-pc padd-tb">