【问题标题】:How to remove visible pixels from background-image如何从背景图像中删除可见像素
【发布时间】:2019-03-13 08:00:54
【问题描述】:

我对@9​​87654327@ 有疑问。在某些分辨率中,我看到我的框架开始在内部复制。如果我减小background-size 的值,那么内部的问题就解决了,但开始在外部重复。我不知道如何强制background-image 不在所有宽度上重复。我的部分看起来像:

background-image: url('...');
background-position: center;
background-size: 16.5%;
background-color: #000000;
width: 100%;
height: 100%;
padding: 0 3.1% 3.1%;

【问题讨论】:

  • 加个fiddle,解决问题会更好

标签: html css image background-image repeat


【解决方案1】:

尝试添加:

background-repeat: no-repeat;

【讨论】:

    猜你喜欢
    • 2014-12-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-11
    • 2015-06-01
    • 2021-05-23
    • 2015-10-18
    相关资源
    最近更新 更多