相关疑难解决方法(0)

在CSS中重叠图像

如何让"mymessage.gif"显示"bread_wine.jpg".

mymessage.gif具有透明背景.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>overlap images</title>
<style type="text/css">
<!--
#navbar {
    font-size: 18px;
    font-weight: bold;
    text-align: center; 
}
#thebigimage {
    background-image: url(bread_wine.jpg);
    height: 548px;
    width: 731px;
    margin-right: auto;
    margin-left: auto;
}
#overlapthis {
    background-image: url(mymessage.gif);
}
-->
</style>
</head>
<body>
<div id="navbar">this is the nav bar</div>
<div id="thebigimage">
<div id="overlapthis"></div>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

css

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

标签 统计

css ×1