Chapter V.S. PC

Similar documents
CH15.indd

5-1 nav css 5-2

互動網頁技術系列課程 HTML與CSS網站基礎設計 [12pt]

關於本書 Part 3 CSS XHTML Ajax Part 4 HTML 5 API JavaScript HTML 5 API Canvas API ( ) Video/Audio API ( ) Drag and Drop API ( ) Geolocation API ( ) Part 5

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

week06.key

Chapter 位元素04 定放棄在網頁版面中使用表格, 是 Web 標準的關鍵之一 其實表格使用的目的不在此, 它應該是用來顯示格狀資料, 就如同 Excel 的工作表一樣 不過, 在 CSS 發展以前, 我們習慣用表格來建立一個有格狀的網頁, 讓元素有組織的排列在上, 而且使用一些像間隔圖片 (

HTML5 & CSS3 色彩 背景與漸層屬性 12-1 (color property) CSS 3 color HTML opacity HTML CSS Color Module Level 3 W3C CSS

4-1 RWD響應式網頁 v5

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2

《linux从入门到精通》实验指导第三讲:文件及目录操作

《linux从入门到精通》实验指导第三讲:文件及目录操作

清华大学2013年毕业生就业质量报告

! 2000 CSSsprites.com Web FTP app 20% 80% getelementbyid() UI Facebook F8 Web CSSsprites.com Web JavaScript CSS React xi React UI UI 反應 UI 宣告 d

投影片 1

<4D F736F F D20312D3120D5D0B9C9CBB5C3F7CAE9A3A8C9CFBBE1B8E5A3A92E646F63>

责任督学,挂牌指导

<img>

Microsoft Word - DataEye:2015年中国移动游戏行业年度报告

導讀 ASP.NET HTML ASP 第一篇 基礎篇第 1 章 認識 ASP.NET ASP.NET ASP.NET ASP.NET ASP.NET 第 2 章 認識 Visual Studio 20 開發環境 Visual Studio 20 Visual Studio 20 第二篇 C# 程式

大漠 伪前端, 就职于淘宝

12 13 記得我 小文哭了 她在騎樓下哭得傷心 她胖胖的身體與黝黑的肌膚全因身體的顫動 不住地收縮著 好 像要把自己縮成到別人看不見的大小 就能夠不哭了 就能夠跑到沒有人知道的地方 她站在別人家公寓的門口 數個信箱口全塞上了廣告傳單 冬天的氣溫在清晨甫過後沒多久才漸漸 地回暖 還是有點冷 她的臉頰

(Microsoft Word - \244\345\266\260\244C_\247\363\267s_.doc)

week04.key

《linux从入门到精通》实验指导第三讲:文件及目录操作

天仁期末個人報告1.PDF

- 可串接許多條件判斷 <link rel=stylesheet media="screen and (orientation: portrait) and (min-width: 800px)" href=800wide-portrait-screen.css> - (

PowerPoint 演示文稿

目 錄 一 參賽小組簡介..3 二 基本構想...5 市場吸引力 三 遊戲類別介紹..10 四 遊戲基礎架構..12 五 遊戲作品摘要..14 系統大綱 整體遊戲流程 戰鬥細節及相關介面 背景..24 劇情..26 劇情角色 基地主頁

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

HTML CSSHTML CSS 4

"航海王"人物人格特質探究doc

Microsoft Word - ch02.doc

法 律 時 事 漫 談 民 事 訴 訟, 當 事 人 要 適 格 摘 錄 自 法 務 部 全 球 資 訊 網 / 法 治 視 窗 ( 作 者 葉 雪 鵬, 曾 任 最 高 法 院 檢 察 署 主 任 檢 察 官 ) 不 久 之 前, 位 於 新 北 市 的 一 處 聘 有 保 全 公 司 入 駐,

Microsoft Word - 2AF63內文.doc

Microsoft Word 箕æ−¥ï¼‹å®ı稿;

98年度即測即評學科測試與即測即評即發證技術士技能檢定簡章

广西英腾教育科技股份有限公司

chapter 2 HTML5 目錄iii HTML HTML HTML HTML HTML canvas

F477

第三章 补充案例

实 际 上,2012 年 以 来, 移 动 互 联 网 领 域 的 热 潮 已 经 有 所 回 落 从 产 品 创 新 社 区 极 客 公 园 的 跟 踪 数 据 来 看,2012 年 上 半 年 移 动 互 联 网 的 新 生 应 用 数 量 比 去 年 下 滑 了 30% 以 上, 结 合 投

《將進酒》

21 flash

Microsoft Word - 1HF12序.doc

Microsoft Word - 讀報看科普─人體篇_橫_.doc

Microsoft Word - 2B802內文.doc

鍟嗗搧瑙傚療鈥㈤挗鏉

東區校園中法治教育種子師資教學研習營

閱 讀 素 材 V.S 分 組 方 式 的 差 異 化 教 學 工 具 表 班 級 :( ) 閱 讀 素 材 V.S 分 組 方 式 獨 立 閱 讀 夥 伴 閱 讀 ( 同 質 性 ) 夥 伴 閱 讀 ( 異 質 性 ) 友 善 陪 伴 虛 心 受 教 國 語 日 報 新 聞 生 活 文 藝 兒 童

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

untitled

上海浦~1

CH01.indd

超連結 03 URI (Universal Resource Identifier) URI Web URL (Universal Resource Locator) URI URI :// [: ]/ [/ 2...]/

学 院 人 才 培 养 分 项 自 评 报 告 结 果 汇 总 表 主 要 评 估 指 标 关 键 评 估 要 素 自 评 等 级 1.1 学 校 事 业 发 展 规 划 合 格 1. 领 导 作 用 1.2 办 学 目 标 与 定 位 合 格 1.3 对 人 才 培 养 重 视 程 度 合 格 1

final

A-2 l 跨裝置網頁設計 A-1 <frameset> <frame> <noframes> (frame) HTML (navigation bar)

Microsoft Word - PHP7Ch01.docx

<!-- the content --> <div id=content> <!-- the footer --> <div id=footer> * 主要的佈局 CSS 元素如下 ( 僅列出結構元素, 其餘樣式省略 ): #wrapper { margin-right: auto; margin-

XHTML width/height bdo a code href object charset codebase hreflang archive lang type alt dir name name xml:lang rel/rev align shape/coords hspace/vsp

Wireless Plus.book

Transcription:

Chapter 14 14-1 V.S. PC 14-2 14-3 14-4

14-1 V.S. PC PC PC Yahoo! PC (https://tw.yahoo.com/) Yahoo! (https:// tw.mobi.yahoo.com/) Yahoo! a b a PC b PC PC Flash HTML5 CSS3 PC 14-2

14-3 PC PC Yahoo! PC https://tw.yahoo.com/ Yahoo! https://tw.mobi.yahoo.com/ PC (RWD Responsive Web Design) ( ) PC W3C ( ) ( ) ( ) (One Web) (One URL) ( ) 14-6

回應式網頁設計 14 ( ) ( ) CSS (Media Query) CSS3 01 ~ 03 ( ) 05 ~ 07 600 ~ 979 ( ) 09 ~ 11 599 ( ) 01:@media screen{ 02: div {columns:3} 03:} 04: 05:@media screen and (min-width:600px) and (max-width:979px){ 06: div {columns:2} 07:} 08: 09:@media screen and (max-width:599px){ 10: div {columns:1} 11:} 14-7

width="100%" 100% PC <div> <img src="piece1.jpg" width="100%"> <p> </p> </div> a b a ( PC ) b ( ) (Liguid Layout) 01 ( ) pc.css 02 600 ~ 979 ( ) tab.css 03 599 ( ) phone.css 01:<link rel="stylesheet" type="text/css" href="pc.css" media="screen"> 02:<link rel="stylesheet" type="text/css" href="tab.css" media="screen and (min-width:600px) and (max-width:979px)"> 03:<link rel="stylesheet" type="text/css" href="phone.css" media="screen and (max-width:599px)"> 14-8

回應式網頁設計 14 14-4 回應式網頁設計的實例 在本節中 我們將透過下面的例子為您示範回應式網頁設計 圖 ( 一 ) 為大尺 寸 瀏覽器寬度在 980px 以上 版面會完整顯示 圖 ( 二 ) 為中尺寸 瀏覽器 寬度在 600 ~ 979px 版面會按比例縮小 圖 ( 三 ) 為小尺寸 瀏覽器寬度在 599px 以內 版面會變成單欄 圖(一) 圖(二) 圖(三) 14-9

14-4-1 viewport viewport viewport ios Android 3.X viewport 980 viewport viewport ( ) ( ) ipad Air ipad Mini ipad Air (1536 2048) ipad Mini (768 1024) ipad Air ( ) ( ) density ( ) ipad Mini PPI (Pixels Per Inch) 163 163 density 1 ipad Air PPI 326 density 326 163=2 14-10

回應式網頁設計 14 density viewport density ipad Air ipad Mini 9.7 7.9 1536 2048 768 1024 density 2 1 viewport 768 1024 ipad Air ipad Mini ( ) ( ) ( ) ( ) iphone 3.5 320 480 163 1 320 480 iphone 4 3.5 640 960 326 2 320 480 iphone 5 4 640 1136 326 2 320 568 iphone 6 4.7 750 1334 326 2 375 667 iphone 6 Plus 5.5 1080 1920 401 2.5 414 736 ipad Air 9.7 1536 2048 326 2 768 1024 ipad Mini 7.9 768 1024 163 1 768 1024 14-11

density viewport HTML 06 <meta> viewport 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title>rwd</title> 06: <meta name="viewport" content="width=device-width"> 07: </head> 08: <body> 09: </body> 10:</html> 14-4-2 CSS3 07 ( ) pc.css 08 600 ~ 979 ( ) tab.css 09 599 ( ) phone.css 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title>rwd</title> 06: <meta name="viewport" content="width=device-width"> 07: <link rel="stylesheet" type="text/css" href="pc.css" media="screen"> 08: <link rel="stylesheet" type="text/css" href="tab.css" media="screen and (min-width:600px) and (max-width:979px)"> 09: <link rel="stylesheet" type="text/css" href="phone.css" media="screen and (max-width:599px)"> 10: </head> 11: <body> 12: </body> 13:</html> 14-12

回應式網頁設計 14 14-4-3 980 600 980 PC 600 ~ 979 599 PC PC 20px 980-20*2=940px 980px a b c d e a (container 940px ) b (header 10px) c (article 600px 20px) d (aside 320px 20px) e (footer ) 14-13

HTML <boby> <body> <div id="container"> <header>... </header> <article>... </article> <aside>... </aside> <footer>... </footer> </div> </body> <\Ch14\RWD1.html> PC pc.css 01:body {margin:20px} 02: 03:#container {width:940px; margin:auto} 04: 05:header {display:block; clear:both; margin:0 0 10px} 06: 07:footer {display:block; clear:both; text-align:left; background:linear-gradient(to bottom, lightblue, white)} 08: 09:article {float:left; width:600px; margin:0 0 20px} 10: 11:aside {float:right; width:320px; margin:0 0 20px; border:solid 1px lightgray; border-radius:10px} <\Ch14\pc.css> 14-14

回應式網頁設計 14 01 20px 03 980-20*2=940px 980px 05 10px 07 09 600px 20px 11 320px 20px PC 100% 600/940 64% 320/940 34% a b c a ( 100%) b ( 64%) c ( 34%) 14-15

tab.css 01:#container {width:100%} 02:article {width:64%} 03:aside {width:34%} 04:img {width:100%; height:auto} <\Ch14\tab.css> 01 PC 100% 02 600/940 64% 03 320/940 34% 04 100% PC 100% a b c a ( 100%) b ( 100%) c ( 100%) 14-16

回應式網頁設計 14 phone.css 01:#container {width:100%} 02:article {float:none; width:100%} 03:aside {float:none; width:100%} 04:img {width:100%; height:auto} <\Ch14\phone.css> 01 PC 100% 02 100% 03 100% 04 100% 14-4-4 01:<!doctype html> 02:<html> 03: <head> 04: <meta charset="utf-8"> 05: <title>rwd</title> 06: <meta name="viewport" content="width=device-width"> 07: <link rel="stylesheet" type="text/css" href="pc.css" media="screen"> 08: <link rel="stylesheet" type="text/css" href="tab.css" media="screen and (min-width:600px) and (max-width:979px)"> 09: <link rel="stylesheet" type="text/css" href="phone.css" media="screen and (max-width:599px)"> 10: </head> 11: <body> 12: <div id="container"> 13: <header> 14: <img src="img1.jpg"> 15: <nav id="items"> <\Ch14\RWD1.html> ( 1/2) 14-17

16: <ul> 17: <li><a href="item1.html"> </a></li> 18: <li><a href="item2.html"> </a></li> 19: <li><a href="item3.html"> </a></li> 20: <li><a href="item4.html"> </a></li> 21: </ul> 22: </nav> 23: </header> 24: 25: <article> 26: <p> 3000 </p> 27: <img src="img2.jpg"> 28: </article> 29: 30: <aside> 31: <h3> </h3> 32: <nav id="travels"> 33: <ul> 34: <li><a href="travel1.html"> </a></li> 35: <li><a href="travel2.html"> </a></li> 36: <li><a href="travel3.html"> </a></li> 37: <li><a href="travel4.html"> </a></li> 38: <li><a href="travel4.html"> </a></li> 39: </ul> 40: </nav> 41: </aside> 42: 43: <footer> 44: <p> <br> 45: 220 1 <br> 0800-000-001<br> 46: </p> 47: </footer> 48: </div> 49: </body> 50:</html> <\Ch14\RWD1.html> ( 2/2) 14-18

回應式網頁設計 14 13 ~ 23 img1.jpg pc.css 25 ~ 28 img2.jpg 30 ~ 41 43 ~ 47 pc.css 07 ~ 10 tab.css phone.css 01:body {margin:20px} 02:#container {width:940px; margin:auto} 03:header {display:block; clear:both; margin:0 0 10px} 04:footer {display:block; clear:both; text-align:left; background:linear-gradient(to bottom, lightblue, white)} 05:article {float:left; width:600px; margin:0 0 20px} 06:aside {float:right; width:320px; margin:0 0 20px; border:solid 1px lightgray; border-radius:10px} 07:#items {background-color:lightblue; overflow:hidden} 08:#items ul {margin:0px} 09:#items li {list-style-type:none; float:left} 10:#items li a {display:block; width:60px; height:30px; color:black; border-right:1px white solid; text-decoration:none; text-align:center; padding:10px 0px 0px} <\Ch14\pc.css> 01:#container {width:100%} 02:article {width:64%} 03:aside {width:34%} 04:img {width:100%; height:auto} <\Ch14\tab.css> 01:#container {width:100%} 02:article {float:none; width:100%} 03:aside {float:none; width:100%} 04:img {width:100%; height:auto} <\Ch14\phone.css> 14-19

PC a b a b 14-20