【发布时间】:2016-09-18 23:37:56
【问题描述】:
我正在使用 CSS 加载背景图像,但图像继续模糊并在几秒钟后聚焦,我该如何解决这个问题?
我在这个问题上看到了一些答案,但对我的情况没有帮助:How to prevent the background image from getting blurry
发生这种情况的原因是什么?
非常感谢任何帮助
html:
<div class="first-row-container">
<div id="one-box" class="first-row-styles animation-target"></div>
<div class="divider"></div>
<div id="two-box" class="first-row-styles animation-target"></div>
<div class="divider"></div>
<div id="three-box" class="first-row-styles animation-target"></div>
<div class="divider"></div>
<div id="four-box" class="first-row-styles animation-target"></div>
<div>
css:
#one-box {
background-image: url("your-brand-here.jpg");
background-size: 100% 100%;
image-rendering: -webkit-optimize-contrast;
border-style: solid;
border-width: 2px;
border-color: #7f8c8d;
}
.first-row-container {
margin-left: 13%;
}
【问题讨论】: