背景(background)是css中一个重要的的部分,也是需要知道的css的基础知识之一。下面这篇文章将会涉及css背景(background)的基本用法,包括诸如 background-attachment 等的属性,也会介绍一些有关背景(background)的常用技巧,以及 css3 中的 背景(background)(包含4个新的背景(background)属性)。
http://www.qianduan.net/everthing-about-css-background.html
该文章不同于其他CSS教程,值得一读!比如讲到:
CSS背景全攻略 写道
需要注意的一个要点是背景占据元素的所有内容区域,包括 padding 和 border,但是不包括元素的 margin。它在 Firefox, Safari ,Opera 以及 IE8 中工作正常,但是 IE6 和 IE7 中,background 没把 border 计算在内。