gpt4 book ai didi

html - 图片不会出现在背景中

转载 作者:太空宇宙 更新时间:2023-11-04 03:27:09 24 4
gpt4 key购买 nike

我试图在后台显示 test.png,但它没有显示。

下面是我尝试过的:

HTML:

<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="menubalkje"></div>
<div class="menu"></div>
<div class="content">
test
</div>
<img class="bgafb" src="images/test.png">
</body>
</html>

CSS:

body {
padding:0px;
margin: 0 auto;
}

.menubalkje{
background-color:#b32b00;
margin-left:auto;
margin-right:auto;
width:1200px;
height:25px;
}

.menu{
background-color:E53700;
margin-left:auto;
margin-right:auto;
width:1200px;
height:75px;
}

.content{
background-color:#ff3e01;
width:1200px;
height:100%;
margin-left:auto;
margin-right:auto;
}

.bgafb{
position:fixed;
left:-270px;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}

id 为bgafbimg 元素需要显示背景图像,但实际上没有。

最佳答案

图像显示给我(我尝试使用 http url,因为我没有你的数据库)

http://jsfiddle.net/z8dw4Lfz/

  <img class="bgafb" src="http://img0.chromatic.io/d8fb8ca6-3b46-d763-9dbf-fd8388402d1d/small.jpg">

关于html - 图片不会出现在背景中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26927538/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com