-4
A
回答
0
CSS:
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
#full-screen-background-image {
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
#wrapper {
position: relative;
width: 800px;
min-height: 400px;
margin: 100px auto;
color: #333;
}
HTML:
<body>
<img alt="full screen background image" src="/background.jpg" id="full-screen-background-image" />
<div id="wrapper">
<p>Content goes here...</p>
</div>
</body>
相关问题
- 1. CSS3背景大小“缩放”
- 2. Animate背景大小:缩放到背景大小:110%
- 3. CSS图像/背景缩放
- 4. CSS缩放背景图像
- 5. 在CSS中缩放背景
- 6. 如何使css背景大小线性缩放?
- 7. CSS背景放大效应
- 8. CSS精灵背景大小
- 9. css绑定背景大小?
- 10. css背景大小封面
- 11. CSS背景图像 - 缩小以适合固定大小div
- 12. CSS缩放效果背景悬停
- 13. CSS背景颜色不缩放ASP.NET
- 14. CSS整页背景缩放问题
- 15. 使用CSS缩放背景图像
- 16. CSS背景自然缩放内容
- 17. animate:在CSS中缩放背景
- 18. 使用CSS缩放背景图像
- 19. 缩放在CSS中的渐变背景
- 20. CSS背景和表单定位缩放
- 21. CSS - 背景大小:封面太大
- 22. CSS缩小和背景图像语法
- 23. 缩放SVG背景
- 24. Opencart缩放背景
- 25. CSS背景图像和背景大小:扩大宽度
- 26. 在背景大小后更改背景图像上的缩放比例:cover
- 27. 如何让我的CSS背景图像与窗口大小一起缩放?
- 28. 缩放大CSS背景图像的移动设备
- 29. CSS失败 - 背景位置,背景重复,背景大小,背景附件
- 30. 使用jQuery使css背景缩小缩小使用jQuery
可以u显示你的代码。 – Selvamani