Css 负片边距和背景图像显示不正确
嗨,我正在尝试在我的页面左下角创建一个背景图像。该页面有一个左右侧边栏。我使用css将图像放置在左侧边栏和主要内容中,但两者都没有正确放置 下面是我想要它的样子:(底部的女孩。我希望她站在页面的左下角,不管页面有多长。) 这就是她现在如何使用我使用的CSS:Css 负片边距和背景图像显示不正确,css,image,background,margin,Css,Image,Background,Margin,嗨,我正在尝试在我的页面左下角创建一个背景图像。该页面有一个左右侧边栏。我使用css将图像放置在左侧边栏和主要内容中,但两者都没有正确放置 下面是我想要它的样子:(底部的女孩。我希望她站在页面的左下角,不管页面有多长。) 这就是她现在如何使用我使用的CSS: .Content { background: url(../../__custom/images/blue/page-bottom-1.jpg) left bottom; background-repeat: no-repeat; ove
.Content {
background: url(../../__custom/images/blue/page-bottom-1.jpg) left bottom;
background-repeat: no-repeat;
overflow: visible;
}
.Left {
background: url(../../__custom/images/blue/page-bottom-1.jpg) left bottom;
background-repeat: no-repeat;
overflow: visible;
}
我使用过的CSS:
.Content {
background: url(../../__custom/images/blue/page-bottom-1.jpg) left bottom;
background-repeat: no-repeat;
overflow: visible;
}
.Left {
background: url(../../__custom/images/blue/page-bottom-1.jpg) left bottom;
background-repeat: no-repeat;
overflow: visible;
}
当我使用以下内容作为背景位置时:背景:
url(../../__custom/images/blue/page-bottom-1.jpg) -150px 100%;
你能给我们看看你的HTML吗?我的怀疑是,
.Left
并没有一直到专栏的底部,但是如果没有看到标记,很难说清楚。如果你能显示你的html,回答起来会很容易。可以尝试的一件事是将背景图像提供给主容器div(可能是左div的父级)
如果你的代码是这样的
<div class="main-container">
<div class="left"></div>
<div class="content"></div>
<div class="right">
希望这有帮助。请向您展示代码/提琴/演示站点,以便我们可以轻松指出您面临的问题。