- 5
- 0
- 约9.23千字
- 约 33页
- 2017-06-13 发布于湖北
- 举报
3.12 The span and div tags Use span to apply a document style sheet to its content style type = text/css bigred {font-size: 24pt;font-family: Ariel; color: red} /style …. p Now is the span class = bigred best time /span ever! /p 3.12 The span and div tags Another tag that is useful for style specifications: div Used to create document sections (or divisions) for which style can be specified e.g., A section of heading and paragraphs for which you want some particular style Example 3-div.html Class exercises Exercise 5 (pp.127) 2-* Programming the World Wide Web Programming the World Wide Web Part 3 Cascading Style Sheets Content 3.1 Introduction 3.2 Levels of Style Sheets 3.3 Style specification formats 3.4 Selector forms 3.5 Property values forms 3.6-3.12 All kinds of properties 3.1 Introduction CSS provides the means to control and change presentation of HTML documents Style sheets allow you to impose a standard style on a whole document, or even a whole collection of documents Style is specified for a tag by the values of its properties CSS is not technically HTML, but can be embedded in HTML documents 3.2 Levels of Style Sheets There are three levels of style sheets Inline - specified for a specific occurrence of a tag and apply only to that tag– This is fine-grain style, which defeats the purpose of style sheets - uniform style Document-level style sheets - apply to the whole document in which they appear External style sheets - can be applied to any number of documents When more than one style sheet applies to a specific tag in a document, the lowest level style sheet has precedence 3.2 Levels of Style Sheets Inline style sheets appear in the tag itself p style=color:#ff0000inline style sheet/p Document-level style sheets appear in the head of the document style type=text/css p{color:red;font-weight:bold} /style External style sheets are in separate fil
您可能关注的文档
- Outlook2007详细使用分解.ppt
- 第4讲电气压力精品.ppt
- p6软件操作培训(2016年)-分解.ppt
- 产业链及工艺流程预案.ppt
- 产业园区案例预案.ppt
- 肠道门诊业务知识培训预案.ppt
- PB840呼吸机呼吸模式分解.ppt
- 第4节焦耳定律精品.ppt
- 肠内营养插管方法与护理预案.ppt
- 肠外营养预案.ppt
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- 北师大版三年级下册数学全册教学设计(配2026年春改版教材).docx
- (2026年)跌倒坠床护理综合指南PPT课件.pptx VIP
- 工程设计应急响应方案(3篇).docx VIP
- 征信简版电子版PDF个人信用报告最新版2024年可编辑带水印模板.pdf VIP
- ntvf调试资料解读.doc VIP
- 电影《色.戒》的叙事伦理.doc VIP
- 上海大学2023-2024学年第1学期《高等数学(上)》期末考试试卷(A卷)附参考答案.pdf
- 佳能EOS1500D基本使用说明书说明书.pdf VIP
- 上海大学2023-2024学年第1学期《高等数学(上)》期末考试试卷(B卷)附参考答案.pdf
- 渣打银行(香港)有限公司.PDF VIP
原创力文档

文档评论(0)