Skip to Main Content
建構Android應用程式--使用HTML、CSS和JavaScript 第二版
book

建構Android應用程式--使用HTML、CSS和JavaScript 第二版

by Jonathan Stark, Brian Jepson
May 2012
Intermediate to advanced content levelIntermediate to advanced
176 pages
3h 43m
Chinese
GoTop Information, Inc.
Content preview from 建構Android應用程式--使用HTML、CSS和JavaScript 第二版
22
第二章
新增
Android CSS
有些
UI
慣例使得
Android
程式看起來就像是
Android
程式。下一節我會新增特殊的標題
列、有圓角的清單、好按的連結(看起來就像光亮的按鈕)等等。使用你選擇的文字編輯
器,建立名為
android.css
的檔案,輸入範例
2-2
所示之程式碼,然後儲存到
HTML
文件
所在相同之目錄。
範例
2.2
:在
HTML body
元素上設定一些通用的全站樣式
body {
background-color: #ddd; /* Background color*/
color: #222; /* Foreground color used for text */
font-family: Helvetica;
font-size: 14px;
margin: 0; /* Amount of negative space around the
outside of the body */
padding: 0; /* Amount of negative space around the
inside of the body*/
}
Android
所有的文字都是以特殊字型
Droid
顯示(
Android4.0
之後,
Droid
經被新的
Roboto
字型取代)。
Droid
字型家族是專門針對行動設備所做,有
極佳的字元集支援,包含三種異體
Droid Sans
Droid Sans Mono
以及
Droid ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

大模型应用开发极简入门 : 基于GPT-4和ChatGPT

大模型应用开发极简入门 : 基于GPT-4和ChatGPT

Olivier Caelen, Marie-Alice Blete
HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang
自然语言处理与计算语言学

自然语言处理与计算语言学

Posts & Telecom Press, Bhargav Srinivasa-Desikan

Publisher Resources

ISBN: 9789862764817