css背景图片拉伸 不用滤镜

css背景图片拉伸 不用滤镜

因为firefox不支持滤镜,所以不要给我有滤镜的代码。
/乎猜/暂时没看到完美解决办法 只能是滤镜对付ie6
//css3新背景特性对付新的浏览器了
div {
background: url(example.jpg) top left (100% 2em) no-repeat,
url(example2.jpg) bottom left (100% 2em) no-repeat,
url(example3.jpg) center center (10em 10em) repeat-y;
}
//在这里,(100% 2em) 是background-size 的值;第一个背景图片岁迹型将会出现在左上角并会被拉伸至该div的州氏100%宽度和2em的高度。
<斗棚芦孙style type = "text/空哗则css">
body {
background-image:url("xxx.jpg");
no-repeat center center fixed;
background-size: contain;
}
← 上一篇: 下一篇: →