CSS第二课-字体、颜色.pptVIP

  • 1
  • 0
  • 约小于1千字
  • 约 6页
  • 2017-07-16 发布于四川
  • 举报
CSS字体、颜色 2011.5 CSS字体属性 设置字体(font-family) 设置字号(font-size) 设置加粗字体(font-weight) 实例 P{ Font-family:”宋体”,”黑体”; Font-size:12px; Font-weight: bold; } 颜色及背景属性 颜色属性设置(color) 背景颜色(background-color) 背景图像(background-image) 背景重复(background-repeat) 背景附件(background-attachment) 背景位置属性(background-position) 复合属性:背景 (background) 颜色及背景属性 背景附件(background-attachment) 语法:background-attachment:取值 取值范围:scroll,fixed scroll表示背景图像是随对象内容滚动,是默认选项;fixed表示背景图像固定在页面上静止不动,只有其他的内容随滚动条滚动。 这个属性和background-image属性连在一起使用。 实例 * *

文档评论(0)

1亿VIP精品文档

相关文档