小编Psy*_*888的帖子

div 的 CSS 背景图像底部

这是我所拥有的:

<div id="page_container">
    A short text
</div>

#page_container
{
    position: absolute;
    top: 120px;
    left: 280px;
    right: 30px;
    background-color: #D0D0CD;
    border-radius: 5px;
    box-shadow: 1px 1px 12px #555;
    height: 1060px;
    overflow: auto;
    background-image: url(./library/grappe.png);
    background-repeat: no-repeat;
    background-position: bottom right;
}
Run Code Online (Sandbox Code Playgroud)

所以,我的 div 是 1060px,在我的屏幕右侧,并且在右下角有一个图像。到目前为止是正确的。短文好看。

由于溢出:自动,长文本不会使我的 div 更高,而是为其添加滚动条,这就是我想要的。

但是,当我向下滚动具有滚动条的 div 时,背景图像仍然粘在 div 的右下角,而不是基本上不显示和首先显示。基本上图像保持在相同的位置,就像一个position: fixed. 无法改变这种行为。

html css overflow background-image

5
推荐指数
1
解决办法
1万
查看次数

Git pull无法更新本地参考

自从我们开始为 git 使用子模块以来,我有一些奇怪的事情。我在 Windows 10 上使用 Tortoise git 或 Powershell 或 cmd 或 Linux 命令解释器。

每当我尝试拉一个子模块时,我都会得到这样的信息:

PS
D:\repositories\git\ProjectAlice\ProjectAliceSkills\PublishedSkills\AliceCore>
git pull error: cannot lock ref 'refs/tags/1.0.35>=1.0.0-a4': Unable
to create
'D:/repositories/git/ProjectAlice/ProjectAliceSkills/.git/modules/PublishedSkills/skill_AliceCore/refs/tags/1.0.35>=1.0.0-a4.lock':
Invalid argument From
https://github.com/project-alice-assistant/skill_AliceCore  ! [new
tag]         1.0.35>=1.0.0-a4 -> 1.0.35>=1.0.0-a4  (unable to update
local ref) error: cannot lock ref 'refs/tags/1.0.36>=1.0.0-a5': Unable
to create
'D:/repositories/git/ProjectAlice/ProjectAliceSkills/.git/modules/PublishedSkills/skill_AliceCore/refs/tags/1.0.36>=1.0.0-a5.lock':
Invalid argument  ! [new tag]         1.0.36>=1.0.0-a5 ->
1.0.36>=1.0.0-a5  (unable to update local ref) error: cannot lock ref 'refs/tags/1.0.37>=1.0.0-a5': Unable to create
'D:/repositories/git/ProjectAlice/ProjectAliceSkills/.git/modules/PublishedSkills/skill_AliceCore/refs/tags/1.0.37>=1.0.0-a5.lock':
Invalid argument  ! …
Run Code Online (Sandbox Code Playgroud)

windows git shell cmd

1
推荐指数
1
解决办法
709
查看次数

标签 统计

background-image ×1

cmd ×1

css ×1

git ×1

html ×1

overflow ×1

shell ×1

windows ×1