jquery - 我怎样才能在背景中看到完整的图像?

标签 jquery html css

我有这个网站:

link

底部有两张图片,遗憾的是这些图片无法完全看到。

您可以在新选项卡中打开原始图像以准确查看其外观。

对我来说,它可以看到大约 90% 的图像

HTML 代码:

<div class="entry-content" style="height: 391px;">
        <div class="sus"></div>
        <div class="jos"></div>
        <div class="jos2"></div>
</div>

CSS代码:

.sus{
  width:100%;
  height: 60%;
  position:absolute;
  top:0;
  background:url("http://bagel.dg-site.com/bagel/wp-content/uploads/2015/07/BANNER-300x215.png") no-repeat center center #B03D3D;
  background-size:cover;
}

.jos{
  width: 50%;
  height: 40%;
  position:absolute;
  bottom:0;
  background:url("http://bagel.dg-site.com/bagel/wp-content/uploads/2015/07/NEWS2-300x246.png") no-repeat center center #B03D3D;
  background-size: cover;
}

.jos2{
  width: 50%;
  height: 40%;
  position:absolute;
  bottom:0;
  right:0;
  background:url("http://bagel.dg-site.com/bagel/wp-content/uploads/2015/07/NEWS1-300x246.png") no-repeat center center #B03D3D;
  background-size: cover;
}

所以我想做图片...请告诉我出了什么问题以及如何解决这种情况以使图像看到完整的?

提前致谢!

最佳答案

尝试使用 100% 背景大小,例如

.jos{
   ...
   background-size: 100% 100%;
}

.jos2{
   ....
   background-size: 100% 100%;
}

关于jquery - 我怎样才能在背景中看到完整的图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31781018/

相关文章:

javascript - 当我的 javascript 呈现时,为什么我的 <br/> 标记显示为 [object Object]?

html - 少/CSS : Is it possible to wrap a class around the outside of another without HTML?

css - 应用类和属性选择器

html - 蓝图 CSS3,3 列布局

html - 如何在 html5 中管理从剪贴板粘贴图像?

悬停时的 CSS 动画 - 悬停时缓慢淡出

javascript - Asp.Net 中控件的验证提示

jquery - 通过 jquery 选择 xml 中的特定元素

javascript - undefined variable $.parseJSON

jQuery 触发自定义事件