2016第章 介简.pptVIP

  • 7
  • 0
  • 约2.96万字
  • 约 86页
  • 2016-12-03 发布于北京
  • 举报
2016第章 介简

第4章 -part1 CSS 介简 CSS: 样式标记语言 或 表现语言 一 CSS样式表 (Cascading Style Sheet层叠样式表) CSS的作用: (Cascading—串联,级联) 1) 弥补HTML显示上的不足,提供丰富的样式; 2) 将HTML内容和显示样式分离; 3) 可以进行集中样式管理。例: 样式表定义--由规则构成 基本语法: 选择符 { 规则表 } 使用内嵌CSS, css1.htm (Do it) html head titleCSS示例/title meta http-equiv=Content-Type content=text/html; charset=gb2312 style type=text/css h1 {font-family:隶书, 宋体;color: green} .text {font-family: 宋体; font-size: 14pt; color: red} #strong{ font-size: 20pt; color: Blue } /style /head body topmargin=4 h1 h1 这是一个CSS示例!/h1 span class=text span 这行文字应是红色的。/span p class=text p

文档评论(0)

1亿VIP精品文档

相关文档