【发布时间】:2016-10-31 04:34:33
【问题描述】:
这可能是一个菜鸟问题,但是,我似乎找不到任何解决我遇到的问题的方法。在我的网站上,我有一个背景图像,可以在任何屏幕尺寸的桌面上完全呈现,但在移动设备上查看时会变得一团糟。我看到了几个类似的问题,要么没有答案,要么没有对我有用的解决方案,我们将不胜感激。
Here is the website
这里有一些我正在经历的截图。
这是我的代码。
<div class="jumbotron">
<h1 class="text-center" id="head">Kyle Goode</h1>
<p class="text-center" id="header">Full Stack Web Developer</p>
</div>
</div>
.home {
background: url(http://mrg.bz/VN5LDd) fixed no-repeat center;
background-attachment: fixed;
background-size: cover !important;
max-width: 100%;
height: 900px;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
【问题讨论】:
标签: ios css mobile web responsive