简体   繁体   English

CSS背景重复

[英]css background-repeat

So i have this DIV with a background 所以我有这个DIV有背景

this is the style: 这是样式:

#book{
    width: 800px;
    position: absolute;
    right:0;
    top: 0px;
    font-family: love;
    font-size: 20px;
    background:url("../img/boek.png");
}

The problem that I have is that there is space between those two backgrounds, and I really don't know why because I've never else used something like margin-top or paddin-top etc... 我的问题是这两个背景之间有间隔,我真的不知道为什么,因为我从未使用过margin-top或paddin-top等东西。

I just want the two backgrounds to touch eachother 我只想让两个背景互相接触

This is an incomplete question or its incoherent.. But add repeat after backround.to make it repeat the full length of a div.. If thats what youre asking. 这是一个不完整的问题或不连贯的问题。但是请在backround之后添加重复,以使其重复整个div的长度。

Background: url() repeat; 背景:url()重复;

probably html, body { margin: 0; } 可能是html, body { margin: 0; } html, body { margin: 0; }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM