html - Phpdolphin 增加轮廓覆盖的高度

标签 html css

我最近得到了这个新的社交网络脚本,我对 css 不是很好,但我对 php 非常好。我想让封面照片的高度稍微大一点,因为它真的很薄。我改变了div的高度。封面照片设置为 div 的背景,所以我更改了该 div 的高度,但它现在显示 2 张图像,我添加的高度越高,它显示的第二张图像越多

enter image description here

正如您在顶部和底部看到的那样,第二张图像的颜色开始出现,当我将它增加很多时,它会变成这样。

enter image description here

我试过为 div 设置一个不重复设置,但它会像这样打开

enter image description here

谁能帮帮我

最佳答案

试试这个: 演示

CSS:

#im {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("path/to/img");
    background-repeat: no-repeat;
    background-size: contain;
}


   HTML:

    <div id="wrapper">
        <div id="im">
        </div>
    </div>

关于html - Phpdolphin 增加轮廓覆盖的高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27592470/

相关文章:

带有滚动条的 ASP.Net 页面内容

html - 如何修改我的脚本以在数据库表中添加行回调函数

javascript - 如何用充满 CSS 的 <div> 替换 &lt;input text box>?

javascript - 如何禁用此 document.getElementById ("failedUpdateMessage").style.visibility = "hidden";在javascript中

python - 如何使用 python 分割大型 CSS 文件?

javascript - 扩展接触盒

html - css 最大高度在 div 中不起作用

html - ZK : How to change <html> background-color

php - 浏览器如何覆盖我的 UTF-8 header 设置以及如何停止它?

html - 将图像固定在 div 中