【发布时间】:2013-10-17 04:15:03
【问题描述】:
现在当您访问此链接时:http://rawgallery.us/user/login 背景被切断。无论浏览器窗口的分辨率如何,都应该是这样的图片:http://rawgallery.us/CarlisleBackDropWallRoom.png
我还在学习 CSS,所以我使用了这段代码,它被认为可以覆盖任何地方的背景,这很有效:
html {
background: url("CarlisleBackDropWallRoom.png") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
我的#page 是这样设置的:
#page {
margin-left: auto;
margin-right: auto;
min-height:960px;
min-width:960px;
max-height:1200px;
max-width:1200px;
}
html标签会覆盖页面标签吗?
例如,如果浏览器窗口为 500x700 或 1200x1500,谁能告诉我如何查看整个背景图像?
谢谢!
【问题讨论】:
-
请避免链接到外部网站。尝试使用 Fiddle 重现您的问题。
-
作为旁注,我几乎肯定会留下一个具有整页背景的网站,而实际上现在仍在加载。
标签: html css image background