Q
背景图像css
0
A
回答
1
。
body{
background-image:url(path to image) no-repeat left top
}
你的形象应该足够大,因为你不重复它。
0
* { margin:0; padding:0; }
body { background:url(/file.jpg) no-repeat top center; }
如果它看起来离你可能需要更多的heightness。
html, body { height:100%; }
+0
添加“无重复顶部中心”图像现在甚至没有显示 – user384080 2010-07-29 06:53:56
+0
对不起,我没有意识到我正在使用背景图像。现在如何拉伸图像来覆盖整个页面? – user384080 2010-07-29 06:55:19
相关问题
- 1. 背景图像CSS
- 2. CSS背景图像
- 3. CSS背景图像
- 4. CSS:背景颜色的背景图像
- 5. CSS背景图像位置
- 6. 伸展CSS背景图像
- 7. 打印CSS背景图像
- 8. CSS背景图像麻烦
- 9. css背景图像渐变
- 10. 变暗CSS背景图像
- 11. CSS背景图像重叠
- 12. 滚动CSS背景图像
- 13. CSS - 个人背景图像
- 14. CSS图像/背景缩放
- 15. CSS多图像背景行?
- 16. CSS:背景图像问题
- 17. CSS背景图像查询
- 18. 已经背景图像css
- 19. 重置CSS背景图像
- 20. 固定CSS背景图像
- 21. CSS背景图像问题
- 22. css图像背景定位
- 23. 背景图像覆盖css
- 24. CSS缩放背景图像
- 25. CSS移动背景图像
- 26. GWT CSS背景图像
- 27. CSS背景图像挣扎
- 28. CSS - 背景图像定位
- 29. 页脚背景图像css
- 30. 覆盖CSS背景图像
添加“no-repeat lef top”图像现在甚至没有显示 – user384080 2010-07-29 06:53:22
抱歉没有意识到我正在使用背景图像。现在如何将图像拉伸以覆盖整个页面? – user384080 2010-07-29 06:56:55
@ ranald-yoh:请看看这个:http://css-tricks.com/how-to-resizeable-background-image/ – Sarfraz 2010-07-29 07:10:04