精通CSS+DIV网页样式与布局.doc.doc

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

什么是样式表 如何将样式表加入您的网页 链入外部样式表文件 (Linking to a Style Sheet) 定义内部样式块对象 (Embedding a Style Block) html style type=text/css !-- body {font: 10pt Arial} h1 {font: 15pt/17pt Arial; font-weight: bold; color: maroon} h2 {font: 13pt/15pt Arial; font-weight: bold; color: blue} p {font: 10pt/12pt Arial; color: black} -- /style body 请注意,这里将style对象的type属性设置为text/css,是允许不支持这类型的浏览器忽略样式表单。 内联定义 (Inline Styles) p style=margin-left: 0.5in; margin-right:0.5in这一行被增加了左右的外补丁p 样式表语法 (CSS Syntax) 继承的值 (The Inherit Value) ? 字体 Font font color font-family font-size font-size-adjust font-stretch font-style font-weight text-decoration text-underline-position text-shadow font-variant text-transform line-height letter-spacing word-spacing 文本 Text text-indent text-overflow vertical-align text-align layout-flow writing-mode direction unicode-bidi word-break line-break white-space word-wrap text-autospace text-kashida-space text-justify ruby-align ruby-position ruby-overhang ime-mode layout-grid layout-grid-char layout-grid-char-spacing layout-grid-line layout-grid-mode layout-grid-type 背景 Background background background-attachment background-color background-image background-position background-positionX background-positionY background-repeat layer-background-color layer-background-image 定位 Positioning position z-index top right bottom left 尺寸 Dimensions height max-height min-height width max-width min-width 布局 Layout clear float clip overflow overflow-x overflow-y display visibility 外补丁 Margins margin margin-top margin-right margin-bottom margin-left 轮廓 Outlines outline outline-color outline-style outline-width 边框 Borders border border-color border-style border-width border-top border-top-color border-top-style border-top-width border-right border-right-color border-right-style border-right-width border-bottom border-bottom-color border-bottom-style border-bottom-width border-left border-left-color border-left-style border-left-width 内容 Generated Content inc

文档评论(0)

cnsg + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档