jQuery Mobile
1.基本起手式
CSS與JS檔案從官網抓取,存放在電腦
要確認jQuery Mobile版本與jQuery版本是否相容(官網有寫)
2.確認封包images資料放入css資料夾中,3個jQuery檔案
Learn More →
程式碼如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css">
<script src="js/jquery-2.1.0.min.js"></script>
<script src="js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<!--頁首-->
</div>
<div role="main" class="ui-content">
<!--內容-->
</div>
<div data-role="footer">
<!--頁尾-->
</div>
</div>
</body>
</html>
<div data-role="footer" data-position="fixed">
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- 頁首改為b黑色 -->
<div data-role="header" data-theme="b">
</div>
<!-- 頁尾改為b黑色 -->
<div data-role="footer" data-position="fixed" data-theme="b">
</div>
<!-- 產品介紹 -->
<div data-role="page" id="product">
<div data-role="header" data-theme="b">
<h1>頁首</h1>
</div>
<div role="main" class="ui-content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quos laborum maxime quis quam ad nesciunt explicabo sed ab in numquam amet voluptatem eaque porro neque quia, eveniet ipsum repellat quasi.</p>
</div>
<div data-role="footer" data-position="fixed" data-theme="b">
<h6>頁尾</h6>
</div>
</div>
<a href="#網址" data-role="button">產品介紹</a>
<div data-role="header" data-theme="b">
<!-- 頁首超連結樣式jQuery會自動設定為按鈕樣式 -->
<a href="#" data-rel="back" data-theme="a">Back</a>
<h1>產品介紹</h1>
</div>
實際完成顯示樣式:
Learn More →
<!-- 照片列表 -->
<div data-role="page" id="photo">
<div data-role="header" data-theme="b">
<a href="#" data-rel="back" data-theme="a">Back</a>
<h1>照片列表</h1>
</div>
<div role="main" class="ui-content">
<!-- 內容區塊 -->
<img src="image/animals-01.jpg" alt="" width="32.5%">
<img src="image/animals-02.jpg" alt="" width="32.5%">
<img src="image/animals-05.jpg" alt="" width="32.5%">
<img src="image/animals-04.jpg" alt="" width="32.5%">
<img src="image/animals-08.jpg" alt="" width="32.5%">
<img src="image/animals-04.jpg" alt="" width="32.5%">
<img src="image/animals-05.jpg" alt="" width="32.5%">
<img src="image/animals-09.jpg" alt="" width="32.5%">
<img src="image/animals-06.jpg" alt="" width="32.5%">
<img src="image/animals-10.jpg" alt="" width="32.5%">
<img src="image/animals-11.jpg" alt="" width="32.5%">
<img src="image/animals-12.jpg" alt="" width="32.5%">
</div>
<div data-role="footer" data-position="fixed" data-theme="b">
<h6>頁尾</h6>
</div>
</div>
<div data-role="header" data-theme="b" data-position="fixed" data-fullscreen="ture">
</div>
<div data-transition="flip">
"fade" //轉圈翻轉(左右)
"pop" //刷淡顯示
"turn" //左軸翻轉
"flow" //縮小後右進左出
"slidefade" //右進左出刷淡
"slide" //右進左出
"slideup" //向上滑入
"slidedown" //向下滑入
"none" //無動畫
</div>
<div data-icon="back">
</div>
名詞解釋 Remote Dictionary Server(Redis) 記憶體內資料存放區 (key-value database) 常用來做快取(Cache 或譯做暫存) 可以減輕資料庫的負擔 使用傳統磁碟的資料庫需要在磁碟來回處理才能執行大多數的操作,而 Redis 這類記憶體內資料存放區則不受此限制,因此回應時間更快。 參考資料
Jul 6, 2021:::info 以下範例:複製 marriagesuggestion --> 為 marriagesuggestionCh8 ::: 複製檔案資料夾,之後重新命名為 marriagesuggestionCh8 這三個資料夾內的資料夾名稱都要修改為 marriagesuggestionCh8 D:\Android\MarriageSuggestionCh8\app\src\androidTest\java\com\example\修改檔名 D:\Android\MarriageSuggestionCh8\app\src\main\java\com\example\修改檔名 D:\Android\MarriageSuggestionCh8\app\src\test\java\com\example\修改檔名
May 5, 20201.安裝Android studio 至官網下載: https://developer.android.com/studio :::danger 因為檔案很大(20-30G),記得都裝在D槽才不會占硬體空間 ::: 2.安裝SDK、ADV 安裝順序
May 5, 2020<string-array name="gender_list"> <item>男</item> <item>女</item> </string-array> 新增一個下拉選單按鈕 ID 設為 spinnerGender package com.example.marriagesuggestion; //系統檔案
May 5, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up