- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
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
文档评论(0)