html - 在前一个 div 上设置边框图像,使图像具有窥视效果

标签 html css

抱歉,我为此做了一个新的,因为它不能像我之前解释的那样完成。

我希望图像覆盖之前的 div,因此它始终保持在同一位置。

这是投资组合 div 的边框图像,我正在尝试在此处正确对齐,以便它比之前的 div 产生某种效果。

<div id="previous">some content</div>
<div id="portfolio">
    <div class="some-other-content">Whole lot of html</div>
</div>

Link to my jsfiddle

最佳答案

在你的 CSS 中使用

“position:absolute”在您的窗口中设置固定位置。

在这里查看更多选项:

http://www.css4you.de/position.html

关于html - 在前一个 div 上设置边框图像,使图像具有窥视效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23655654/

相关文章:

html - 如何在使用 DITA-OT 3.0.4 转换的 html5 中覆盖默认 css?

javascript - 将并排的 Rects 连接到一个大 Rect

javascript - 2 个不同元素的外观相同

html - 如何找到网页子页面的介绍模板

html - 如何让带有白色背景图像的 div 向左浮动?

html - 从内联 block div 组移出并居中一个 div, float 左对齐

wordpress - 如何取消响应式网站页脚菜单中的 CSS 效果?

html - CSS – 标题显示 : table element – positioning issue

html - BEM:如何确保正确类(父 block )的规则优先?

css - IE8和Firefox CSS选择器的区别?