我想在背景图像的顶部添加边距。这是我的背景图像 css 代码
body {
background-image:url(Images/Home.png);
background-position:top;
background-repeat:no-repeat;
background-attachment:fixed;
}
我尝试在 css 正文代码中添加 margin-top:10px;
,但它不起作用。只有div
在移动
最佳答案
用下面的代替背景位置怎么样?
background-position:0px 10px;
关于html - 在背景图像顶部添加边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35422321/