osc html5-monaca
TRANSCRIPT
NativeApp
開発言語 OSによって異なる
入手方法 ストアを介して
機能 制限無し
更新 ストアの審査
MobileApp
HTML / CSS / JS
ストア無し
制限有り
常時・即反映
HyblidApp
JSからネイティブの機能を呼び出し
Web埋め込みにより常時即反映可
で呼び出せる機能
・加速時計
・アドレス帳
・電子コンパス
・音の再生
・GPS
・端末情報
・ファイルシステムへのアクセス
・WebSQL
・起動画面
・プッシュ通知 ・バイブレーション
・接続回線取得
・カメラ
【ons-screen】
index.html<ons-navigator page="page1.html" title="Page 1">
</ons-navigator>
page1.html<div class="page center">
<h1>Hello, I am Page 1</h1>
<ons-button ng-click="ons.screen.presentPage('page2.html')"">
Push Page 2
</ons-button>
</div>
page2.html<div class="page center">
<h1>Hello, I am Page 2</h1>
<ons-button ng-click="ons.screen.dismissPage()">
Pop Page
</ons-button>
</div>
【ons-navigator】
index.html<ons-navigator page="page1.html" title="Page 1">
</ons-navigator>
page1.html<div class="page center">
<h1>Hello, I am Page 1</h1>
<ons-button ng-click="ons.navigator.pushPage('page2.html', 'Page 2')">
Push Page 2
</ons-button>
</div>
page2.html<div class="page center">
<h1>Hello, I am Page 2</h1>
<ons-button ng-click="ons.navigator.popPage()">
Pop Page
</ons-button>
</div>
widthやheightに、
borderやpaddingが含まれるようになる!
【CSS】box-sizing: border-boxを使え!
そのⅠ
width = boxのwidthwidth = (boxのwidth + borderの太さ)
* {
box-sizing:border-box;
}
【CSS】-webkit-touch-callout: none
-webkit-user-select: none
をつかえ!
その2
* {
-webkit-touch-callout: none;
-webkit-user-select: none;
}
input[type=text] {
-webkit-user-select: auto;
}