PowerPoint 演示文稿

Similar documents
05 01 accordion UI containers 03 Accordion accordion UI accordion 54

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

Windows XP

5-1 nav css 5-2

Microsoft Word doc

区 域 活 动 进 入 中 班 我 们 区 域 的 设 置 和 活 动 材 料 都 有 所 变 化, 同 时 也 吸 引 孩 子 们 积 极 的 参 与 学 习 操 作 区 的 新 材 料 他 们 最 喜 欢, 孩 子 们 用 立 方 块 进 行 推 理 操 作 用 扑 克 牌 进 行 接 龙 游

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

BC04 Module_antenna__ doc

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Microsoft Word - 第四組心得.doc


可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

Microsoft Word - 11月電子報1130.doc

Microsoft Word - template.doc

Microsoft Word - Final Exam Review Packet.docx

2015 Chinese FL Written examination

A Community Guide to Environmental Health

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

( 一 ) 實 習 的 時 候 就 和 讀 書 會 的 同 學 一 起 把 陳 嘉 陽 紮 實 地 讀 過 一 遍 了, 也 因 此 在 考 完 教 檢 之 後, 我 們 只 有 把 不 熟 或 是 常 考 的 章 節 再 導 讀 一 次 ( 例 如 : 統 計 行 政 法 規 ), 主 力 則 是

國立中山大學學位論文典藏.PDF

國立中山大學學位論文典藏.PDF

bootstrap - 2

Chn 116 Neh.d.01.nis

Microsoft Word - ChineseSATII .doc

A VALIDATION STUDY OF THE ACHIEVEMENT TEST OF TEACHING CHINESE AS THE SECOND LANGUAGE by Chen Wei A Thesis Submitted to the Graduate School and Colleg

1.ai

Microsoft Word doc

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

國立桃園高中96學年度新生始業輔導新生手冊目錄

投影片 1

星河33期.FIT)

UDC The Policy Risk and Prevention in Chinese Securities Market

2-7.FIT)

<4D F736F F D203033BDD7A16DA576B04FA145A4ADABD2A5BBACF6A16EADBAB6C0ABD2A4A7B74EB8712E646F63>

國立中山大學學位論文典藏

川 外 250 人, 上 外 222 人, 广 外 209 人, 西 外 195 人, 北 外 168 人, 中 南 大 学 135 人, 西 南 大 学 120 人, 湖 南 大 学 115 人, 天 外 110 人, 大 连 外 国 语 学 院 110 人, 上 海 外 事 学 院 110 人,

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

Microsoft Word - (web)_F.1_Notes_&_Application_Form(Chi)(non-SPCCPS)_16-17.doc

論 文 摘 要 佛教起源於印度 是大多數人所週知的觀念 而素食觀念的起源與實行方 法 在世界各地是各有其特色並非一致 在中國社會 對佛教的飲食觀念 多 數人直覺認為佛教徒應與素食劃上等號 事實上並非如此 因為隨著佛教流傳 到世界各地 與當地的民俗及風土人情相結合 進而使不同國家的佛教徒依照 不同國情

问 她! 我 们 把 这 只 手 机 举 起 来 借 着 它 的 光 看 到 了 我 老 婆 正 睁 着 双 眼 你 在 干 什 么 我 问, 我 开 始 想 她 至 少 是 闭 着 眼 睛 在 yun 酿 睡 意 的 我 睡 不 着 她 很 无 辜 地 看 着 我 我 问 她 yun 酿 的 yu

前 言 一 場 交 換 學 生 的 夢, 夢 想 不 只 是 敢 夢, 而 是 也 要 敢 去 實 踐 為 期 一 年 的 交 換 學 生 生 涯, 說 長 不 長, 說 短 不 短 再 長 的 路, 一 步 步 也 能 走 完 ; 再 短 的 路, 不 踏 出 起 步 就 無 法 到 達 這 次

(2008) 主 张 教 师 在 课 文 教 学 中 应 让 学 生 有 意 识 地 注 意 语 块, 并 指 出 语 块 教 学 对 大 学 生 的 英 语 写 作 能 力 有 着 重 要 的 意 义 于 秀 莲 (2008) 以 大 学 生 为 受 试 对 象, 在 对 不 同 学 生 分 别

Microsoft Word - 武術合併

UTI (Urinary Tract Infection) - Traditional Chinese

蔡 氏 族 譜 序 2

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2

(Microsoft Word - 10\246~\253\327\262\304\244@\264\301\256\325\260T_Version4)

89???????q?l?????T??

<4D F736F F F696E74202D20312EB9FEB6FBB1F5B9A4D2B5B4F3D1A7D5E7C1BCA3BAC3E6CFF2D1D0BEBFC9FAB8B4CAD4B5C4BDE1B9B9BBAFC3E6CAD4BFBCBACBCCBDCBF7D3EBCAB5BCF92E BBCE6C8DDC4A3CABD5D>

南華大學數位論文

<4D F736F F D C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

XML/DTD (1) XML (Markup) SGML HTML XML XML XML 2004/7/ All Rights Reserved 2

中 國 茶 詩 與 文 人 茶 道 生 活 顏 鸝 慧 人 社 科 院 / 人 文 藝 術 教 學 中 心 摘 要 飲 茶 的 起 源, 歷 來 眾 說 紛 紜, 根 據 文 獻 資 料 顯 示, 在 唐 代 之 前, 飲 茶 只 是 一 種 區 域 性 的 生 活 風 俗 然 西 漢 時 已 有

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

2 SGML, XML Document Traditional WYSIWYG Document Content Presentation Content Presentation Structure Structure? XML/SGML 3 2 SGML SGML Standard Gener

編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢? 6 元? 8 元? 10 元? 十 年 後 又 賣 多 少 錢?( 大 概 20 元 有

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

Microsoft Word - 口試本封面.doc

國 史 館 館 刊 第 23 期 Chiang Ching-kuo s Educational Innovation in Southern Jiangxi and Its Effects ( ) Abstract Wen-yuan Chu * Chiang Ching-kuo wa

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


致 谢 本 人 自 2008 年 6 月 从 上 海 外 国 语 大 学 毕 业 之 后, 于 2010 年 3 月 再 次 进 入 上 外, 非 常 有 幸 成 为 汉 语 国 际 教 育 专 业 的 研 究 生 回 顾 三 年 以 来 的 学 习 和 生 活, 顿 时 感 觉 这 段 时 间 也

Microsoft Word - 24.doc

:5-6

TX-NR3030_BAS_Cs_ indd


06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

從詩歌的鑒賞談生命價值的建構

Logitech Wireless Combo MK45 English

<4D F736F F D203338B4C12D42A448A4E5C3C0B34EC3FE2DAB65ABE1>

[ 13 年 12 月 06 日, 下 午 6 点 24 分 ] Intel Hosts 新 加 入 的 同 学 们, 快 去 听 听 在 线 宣 讲 会 哦, 同 时 完 成 页 面 下 方 有 奖 调 查, 就 有 资 格 参 与 大 奖 抽 取 啦! [ 13 年 12 月 06 日, 下 午


encourages children to develop rich emotions through close contact with surrounding nature. It also cultivates a foundation for children s balanced de

untitled

穨6街舞對抗中正紀念堂_林伯勳張金鶚_.PDF

Abstract Today, the structures of domestic bus industry have been changed greatly. Many manufacturers enter into the field because of its lower thresh

1505.indd

國家圖書館典藏電子全文

入學考試網上報名指南

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.

高中英文科教師甄試心得

目 感恩与代祷 录 编 者 1 牧者心声 勒住你的舌头 龚明鹏 3 见证与分享 我的见证 吴权伟 8 相信就能够看见 卓艳梅 12 再述主恩 爱的雕凿 张英治 19 万怡杉 28 母亲节征文 记念母亲节 凌励立 43 父母的爱和神的爱 曹 红 47 Love Lisa Wang 50



參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特

105 年 國 中 教 育 會 考 重 要 日 期 項 目 日 期 及 時 間 報 名 1. 集 體 報 名 :105 年 3 月 10 日 ( 星 期 四 ) 至 3 月 12 日 ( 星 期 六 ) 每 日 8:00~12:00 13:30~17:00 2. 個 別 報 名 : 於 上 網 填

中國文化大學政治學研究所

LH_Series_Rev2014.pdf

姓 名 : 蘇 海 彬 班 別 :1B 書 名 : 咆 哮 山 莊 作 者 : 今 次 我 想 介 紹 的 書 是 一 本 文 學 巨 著, 名 叫 咆 哮 山 莊 像 我 這 些 學 生 未 來 要 面 對 競 爭 很 強 勁 的 社 會, 然 而 可 從 一 些 文 學 名 著 來 從 少 學

莊 子

C o n t e n t s Acceptance Allow Love Apologize Archangel Metatron Archangel Michael Ask for

【摘要】

18世纪东亚儒教思想的地形

南華大學數位論文

管道建模基础.ppt

高雄市左營國民小學八十九學年度第一學期一年級總體課程教學進度表

2 毓秀视点 本编辑 然 本报讯 记者 晓风 卢梅 沈燕花 今年学校总体升学率高达 20% 作为每年 考研的命脉之一 数学 在其中发挥了 至关重要的作用 据了解 学校建立的完 备的考研数学辅导体系 成为考研同学们 攻克数学难关的 利器 除考研之外 多 年来我校学生数学竞赛成绩稳居同类院校 前列 获奖

<D0D0D5FED7A8CFDF2E696E6464>

Transcription:

Lecture 03 DIV + CSS United, Clear, and Simple Web Arts #3 - CSS By Yanju Chen

Document Type 文档类型 When creating an HTLM Document in Dreamweaver, we will find the following statement added automatically: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1- transitional.dtd"> It tells the browsers the type of the document in order to avoid some compatible problems. 这句话标明本文档是过渡类型, 另外还有框架和严格类型, 目前一般都采用过渡类型, 因为浏览器对 XHTML 的解析比较宽松, 允许使用 HTML4.01 中的标签, 但必须符合 XHTML 的语法

Encoding 语言编码 And another statement is as follow: <meta http-equiv="content-type" content="text/html; charset=gb2312" /> It tells the browsers what language of encoding we use to write the webpage. gb2312 encoding means the document is encoded in Simplified-Chinese, and usually the general encoding in the world is UTF-8. Make sure the encoding of your css file corresponds.

What is CSS? Its full name is Cascading Style Sheet ( 层叠样式表 ). As mentioned, it set up the rules of properties for the elements in the webpage. ( 规定了网页元素的属性 ) It is organized and easy to read and maintain compared to the way HTML Language adopts. ( 相对于 HTML 的控制, 它更加有序和容易维护 ) And at the same time, it offers more properties and even methods of the HTML elements. ( 甚至能控制 HTML 自己很难控制的东西, 例如定义 HTML 元素的某些方法 )

How to include CSS? There are already 3 ways you can choose: 1. Inline Styles( 行内样式 ): inside the HTML document, style information on a single element, specified using the "style" attribute. <p style="font-size:18px;"> 内部样式 </p> <table style= font-face: 微软雅黑 ;"> 内部样式 </table> Etc. It only works on the specific element. ( 只对标签内元素有效 )

How to include CSS? There are already 3 ways you can choose: 2. Embedded style( 内部样式 ): blocks of CSS information inside the HTML itself <style> h2 { color:#f00;} a { color:green; } </style> It is like a tag, but it should be put in between <head></head>. And it works on all elements of the page. ( 放在头部, 整页有效 )

How to include CSS? There are already 3 ways you can choose: 3. External style sheets( 外部样式 ): a separate CSS file referenced from the document <link href="layout.css" rel="stylesheet" type="text/css" /> The CSS is in another file, and we include it using the statement above, kind of like the way we do in C and C++. ( 放在单独文件, 需要时引入 ) This is the usual way we adopt for its convenience to be reused. ( 可以用于整个网站每个页面, 容易维护 )

Let s take the 3 rd way as an example, which is also the formal way we use when creating a webpage. First of all, a statement should be included: <link href="layout.css" rel="stylesheet" type="text/css" /> And let s create a file called layout.css using any editor you prefer.

And let s talk about selector. ( 选择器,css 和 js 的能力来源 ) According the syntax of selector, we can select nearly every elements and contents of the page and the combination of them. ( 通过选择器机制, 几乎所有的 东西 都可以被选中并修改 ) For example, the HTML elements, the contents, the nth children of a container, the first letter of a paragraph, the elements with specific id or class, the properties of a link when clicked, the neighbors of an element, and the combination of them etc. It is strong. ( 简而言之, 很强 )

So how to use selector? Before that, let s see some basic syntax. Usually, the CSS file is going like this: [Selector]{ } Properties1: value1 [value2] [value3] ; Properties2: value1 [value2] ; /*You comments here.*/ Combine those blocks, and you get a CSS file.

About the [Selector], to choose different elements, we have different ways. To choose elements with a specific class, we use.classname{} To choose elements with a specific id, we use #id{} To choose a specific type of tag, we use tagname{} To choose every child of a selector, we use [father].child{} To choose the first child of a selector, we use [father]>[child] To choose the Pseudo Class ( 伪类 )of a selector, we use [selector]:[status] To choose the next specific elements, we use [selector]+[selector] To choose the properties of some selector by using a space, we use [selector] [property] To combine some of them, we use a comma, e.g. #id1 #id2,#id3,#tagname,.classname{}

So what is the Pseudo Classes? 伪类 (Pseudo classes) 是选择符的螺栓, 用来指定一个或者与其相关的选择符的状态 它们的形式是 selector:pseudo class { property: value; }, 简单地用一个半角英文冒号 (:) 来隔开选择符和伪类 简单理解, 就是绑定了的事件 Due to the capability of the browsers, only some of them are well supported.

Some Pseudo Classes Well Supported: 属性描述 CSS :active 向被激活的元素添加样式 1 :focus 向拥有键盘输入焦点的元素添加样式 2 :hover 当鼠标悬浮在元素上方时, 向元素添加样式 1 :link 向未被访问的链接添加样式 1 :visited 向已被访问的链接添加样式 1 :first-child 向元素的第一个子元素添加样式 2 :lang 向带有指定 lang 属性的元素添加样式 2

And next let s talk about the layout, which is the most important part of the CSS usage. CSS 盒模型 Concepts: Content( 内容 ) Padding( 填充 ) Border( 边框 ) Margin( 边界 ) 每个被赋予 block 属性的元素都满足此模型

About the positioning of the elements: Block Elements 块级元素 div, h1, p 显示为一块内容 Inline Elements 行内元素 strong, span,a 显示为一行 简单地, 就是有没有换行 By setting the property display: block/none/inline/etc., you can transform them.

There are 3 positioning methods in CSS: 1. The Normal Positioning ( 普通流 ): The default one, usually we don t use this. 2. Relative Positioning ( 相对定位 ): The reference is the original place it ought to be. 3. Absolute Positioning ( 绝对定位 ): Usually the nearest positioned parent is the reference. Use position: absolute/relative to specify the positioning

Relative Positioning Absolute Positioning

And then a simple concept of Float ( 浮动 ) It works like liquid.

And about the position details control( 细节定位控制 ): Usually we use: margin: value1 [value2] [value3] [value4] padding: value1 [value2] [value3] [value4]

And finally let s introduce some others. background-color: url([path]) background-repeat:repeat/repeat-x/repeat-y/no-repeat/inherit background-position:center/top/buttom/right/left/[self-defined] etc.

An Example 例子分析 The sysumstc Web also uses CSS+DIV.

Conclusions 总结 http://www.w3school.com.cn AND Thank you! & have a nice day