CSS3 background-size 背景图自适应容器大小实例

浏览器参照基准:Firefox3.6 and Later, Chrome5 and Later, Safari5 and Later, Opera11.50 and Later, IE9.0 and Later

所用图片:

CSS3 background-size demo

示例:

#background-size-adapt{
	background-size:100% 100%;
}

* 你可以任意调整示例中容器的宽高,用以测试背景图是否会随着容器的大小变化而变化

CSS探索之旅